Discover Packages
github.com/urandom/handler
encoding
package
Version:
v0.8.6
Opens a new window with list of versions in this module.
Published: Jul 1, 2018
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package encoding provides an handler that compresses the response body using gzip.
Gzip returns a handler that will use gzip compression on the response body
of handler h. Compression will only be applied if the request contains an
'Accept-Encoding' header that contains 'gzip'.
By default, no messages are printed out.
An Option is used to change the default behaviour of the encoding handlers.
Logger is used to print out any error messages during compression. If
none is provided, no error message will be printed.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.