Versions in this module Expand all Collapse all v0 v0.85.0 Oct 15, 2023 Changes in this version + const Identity + type Compresses struct + func NewCompresses(cap int, disable bool) *Compresses + func (e *Compresses) AcceptEncoding(contentType, h string, l logs.Logger) (w *NamedCompress, notAcceptable bool) + func (e *Compresses) AcceptEncodingHeader() string + func (e *Compresses) Add(name string, c Compressor, ct ...string) *Compresses + func (e *Compresses) ContentEncoding(name string, r io.Reader) (io.ReadCloser, error) + func (e *Compresses) IsDisable() bool + func (e *Compresses) SetDisable(disable bool) + type Compressor interface + Decoder func(r io.Reader) (io.ReadCloser, error) + Encoder func(w io.Writer) (io.WriteCloser, error) + func NewBrotliCompress(o brotli.WriterOptions) Compressor + func NewDeflateCompress(level int, dict []byte) Compressor + func NewGzipCompress(level int) Compressor + func NewLZWCompress(order lzw.Order, width int) Compressor + func NewZstdCompress() Compressor + type NamedCompress struct + func (c *NamedCompress) Compress() Compressor + func (c *NamedCompress) Name() string