Documentation
¶
Overview ¶
Package compressor implements GZIP compression for HTTP responses.
Index ¶
Constants ¶
View Source
const ( BestCompression = gzip.BestCompression BestSpeed = gzip.BestSpeed DefaultCompression = gzip.DefaultCompression NoCompression = gzip.NoCompression )
Variables ¶
This section is empty.
Functions ¶
func GzipHandler ¶
GzipHandler applies GZIP compression to the response body, except in the following scenarios: * The response body is already compressed using gzip or deflate * The request's Accept-Encoding header does not announce gzip support * The request is upgrading to a websocket connection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.