Documentation ¶
Index ¶
- Constants
- func Writer(contentEncoding string) func(http.Handler) http.Handler
- type Encoder
- type Response
- func (r *Response) Error(err error, status int) (int, error)
- func (r *Response) Header() http.Header
- func (r *Response) Status() int
- func (r *Response) WriteHeader(statusCode int)
- func (r *Response) WriteJSON(v interface{}) (int, error)
- func (r *Response) WriteXML(v interface{}) (int, error)
- func (r *Response) Written() bool
Constants ¶
View Source
const ( GZIP = "gzip" LZW = "compress" FLATE = "deflate" BROTLI = "br" )
Response compressions
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.