Versions in this module Expand all Collapse all v1 v1.0.1 Feb 21, 2018 Changes in this version + type GzipResponseWriterWithCloseNotify struct + func (w GzipResponseWriterWithCloseNotify) CloseNotify() <-chan bool v1.0.0 Nov 20, 2017 Changes in this version + const DefaultMinSize + const DefaultQValue + func CompressionLevel(level int) option + func ContentTypes(types []string) option + func GzipHandler(h http.Handler) http.Handler + func GzipHandlerWithOpts(opts ...option) (func(http.Handler) http.Handler, error) + func MinSize(size int) option + func MustNewGzipLevelHandler(level int) func(http.Handler) http.Handler + func NewGzipLevelAndMinSize(level, minSize int) (func(http.Handler) http.Handler, error) + func NewGzipLevelHandler(level int) (func(http.Handler) http.Handler, error) + type GzipResponseWriter struct + func (w *GzipResponseWriter) Close() error + func (w *GzipResponseWriter) Flush() + func (w *GzipResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) + func (w *GzipResponseWriter) Push(target string, opts *http.PushOptions) error + func (w *GzipResponseWriter) Write(b []byte) (int, error) + func (w *GzipResponseWriter) WriteHeader(code int)