res_interface_gen.go — fiber Source File
Architecture documentation for res_interface_gen.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 082a3deb_c1f2_6448_002d_0dfaaa79b5d5["res_interface_gen.go"] 3c539dc4_ce70_7be5_43dc_5058a965884a["bufio"] 082a3deb_c1f2_6448_002d_0dfaaa79b5d5 --> 3c539dc4_ce70_7be5_43dc_5058a965884a style 082a3deb_c1f2_6448_002d_0dfaaa79b5d5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// Code generated by ifacemaker; DO NOT EDIT.
package fiber
import (
"bufio"
"io"
"github.com/valyala/fasthttp"
)
// Res is an interface for response-related Ctx methods.
type Res interface {
// App returns the *App reference to the instance of the Fiber application
App() *App
// Append the specified value to the HTTP response header field.
// If the header is not already set, it creates the header with the specified value.
Append(field string, values ...string)
// Attachment sets the HTTP response Content-Disposition header field to attachment.
Attachment(filename ...string)
// ClearCookie expires a specific cookie by key on the client side.
// If no key is provided it expires all cookies that came with the request.
ClearCookie(key ...string)
// RequestCtx returns *fasthttp.RequestCtx that carries a deadline
// a cancellation signal, and other values across API boundaries.
RequestCtx() *fasthttp.RequestCtx
// Cookie sets a cookie by passing a cookie struct.
Cookie(cookie *Cookie)
// Download transfers the file from path as an attachment.
// Typically, browsers will prompt the user for download.
// By default, the Content-Disposition header filename= parameter is the filepath (this typically appears in the browser dialog).
// Override this default with the filename parameter.
Download(file string, filename ...string) error
// Response return the *fasthttp.Response object
// This allows you to use all fasthttp response methods
// https://godoc.org/github.com/valyala/fasthttp#Response
Response() *fasthttp.Response
// Format performs content-negotiation on the Accept HTTP header.
// It uses Accepts to select a proper format and calls the matching
// user-provided handler function.
// If no accepted format is found, and a format with MediaType "default" is given,
// that default handler is called. If no format is found and no default is given,
// StatusNotAcceptable is sent.
Format(handlers ...ResFmt) error
// AutoFormat performs content-negotiation on the Accept HTTP header.
// It uses Accepts to select a proper format.
// The supported content types are text/html, text/plain, application/json, application/xml, application/vnd.msgpack, and application/cbor.
// For more flexible content negotiation, use Format.
// If the header is not specified or there is no proper format, text/plain is used.
AutoFormat(body any) error
// Get (a.k.a. GetRespHeader) returns the HTTP response header specified by field.
// Field names are case-insensitive
// Returned value is only valid within the handler. Do not store any references.
// Make copies or use the Immutable setting instead.
Get(key string, defaultValue ...string) string
// GetHeaders (a.k.a GetRespHeaders) returns the HTTP response headers.
// Returned value is only valid within the handler. Do not store any references.
// Make copies or use the Immutable setting instead.
GetHeaders() map[string][]string
// JSON converts any interface or string to JSON.
// ... (104 more lines)
Domain
Subdomains
Functions
Dependencies
- bufio
Source
Frequently Asked Questions
What does res_interface_gen.go do?
res_interface_gen.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Context subdomain.
What functions are defined in res_interface_gen.go?
res_interface_gen.go defines 1 function(s): Writer.
What does res_interface_gen.go depend on?
res_interface_gen.go imports 1 module(s): bufio.
Where is res_interface_gen.go in the architecture?
res_interface_gen.go is located at res_interface_gen.go (domain: FiberCore, subdomain: Context).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free