Versions in this module Expand all Collapse all v0 v0.0.2 Nov 6, 2023 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 DropETag() option + func ExceptContentTypes(types []string) option + func GzipHandler(h http.Handler) http.HandlerFunc + func Implementation(writer writer.GzipWriterFactory) option + func KeepAcceptRanges() option + func MinSize(size int) option + func NewWrapper(opts ...option) (func(http.Handler) http.HandlerFunc, error) + func RandomJitter(n, buffer int, paranoid bool) option + func SetContentType(b bool) option + func SuffixETag(suffix string) option + func Transport(parent http.RoundTripper, opts ...transportOption) http.RoundTripper + func TransportEnableGzip(b bool) transportOption + func TransportEnableZstd(b bool) transportOption + type GzipResponseWriter struct + func (w *GzipResponseWriter) Close() error + func (w *GzipResponseWriter) Flush() + func (w *GzipResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) + func (w *GzipResponseWriter) Unwrap() http.ResponseWriter + func (w *GzipResponseWriter) Write(b []byte) (int, error) + func (w *GzipResponseWriter) WriteHeader(code int) + type GzipResponseWriterWithCloseNotify struct + func (w GzipResponseWriterWithCloseNotify) CloseNotify() <-chan bool + type NoGzipResponseWriter struct + func (n *NoGzipResponseWriter) CloseNotify() <-chan bool + func (n *NoGzipResponseWriter) Flush() + func (n *NoGzipResponseWriter) Header() http.Header + func (n *NoGzipResponseWriter) Unwrap() http.ResponseWriter + func (n *NoGzipResponseWriter) Write(bytes []byte) (int, error) + func (n *NoGzipResponseWriter) WriteHeader(statusCode int)