package
1.1.3
Repository: https://github.com/infinitbyte/framework.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
ContentTypes specifies a list of content types to compare the Content-Type header to before compressing.
GzipHandler wraps an HTTP handler, to transparently gzip the response body if the client supports it (via the Accept-Encoding header).
No description provided by the author
No description provided by the author
MustNewGzipLevelHandler behaves just like NewGzipLevelHandler except that in an error case it panics rather than returning an error.
NewGzipLevelAndMinSize behave as NewGzipLevelHandler except it let the caller specify the minimum size before compression.
NewGzipLevelHandler returns a wrapper function (often known as middleware) which can be used to wrap an HTTP handler to transparently gzip the response body if the client supports it (via the Accept-Encoding header).

# Constants

DefaultMinSize is the default minimum size until we enable gzip compression.
DefaultQValue is the default qvalue to assign to an encoding if no explicit qvalue is set.

# Structs

GzipResponseWriter provides an http.ResponseWriter interface, which gzips bytes before writing them to the underlying response.
No description provided by the author