Documentation
¶
Overview ¶
Package compression defines a response compressing Handler. It compresses the body of the http response sent back to a client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gzipper ¶
type Gzipper struct {
// contains filtered or unexported fields
}
Gzipper defines the structure of the response compressing Handler.
func (Gzipper) Link ¶
func (g Gzipper) Link(h xhttp.Handler) xhttp.HandlerLinker
Link registers a next request Handler to be called by ServeHTTP method. It returns the result of the linking.
Click to show internal directories.
Click to hide internal directories.