Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compression ¶
Compression is a plugin that replaces the default ResponseWriter with a compression writer that compresses everything written to the response. Currently supports gzip and deflate
func (*Compression) Handle ¶
func (plugin *Compression) Handle(c *verto.Context, next http.HandlerFunc)
Handle is called on per web request to supply a compression writer to the other plugins and request handler. Currently only gzip and deflate are supported. The compression type used is the first supported compression type encountered in the 'Accept-Encoding' header of incoming requests
Click to show internal directories.
Click to hide internal directories.