Versions in this module Expand all Collapse all v1 v1.0.0 Jun 15, 2021 Changes in this version + const DefaultMinSize + const DefaultQValue + const HeaderNoCompression + func CompressAllContentTypeFilter(ct string) bool + func CompressionLevel(level int) option + func ContentTypeFilter(compress func(ct string) bool) option + func ContentTypes(types []string) option + func DefaultContentTypeFilter(ct string) bool + func ExceptContentTypes(types []string) option + func GzipHandler(h http.Handler) http.Handler + func Implementation(writer writer.GzipWriterFactory) option + func KeepAcceptRanges() option + func MinSize(size int) option + func NewWrapper(opts ...option) (func(http.Handler) http.Handler, error) + func Transport(parent http.RoundTripper) http.RoundTripper + type GzipResponseWriter struct + func (w *GzipResponseWriter) Close() error + func (w *GzipResponseWriter) Flush() + func (w *GzipResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) + func (w *GzipResponseWriter) Write(b []byte) (int, error) + func (w *GzipResponseWriter) WriteHeader(code int) + type GzipResponseWriterWithCloseNotify struct + func (w GzipResponseWriterWithCloseNotify) CloseNotify() <-chan bool