Versions in this module Expand all Collapse all v0 v0.0.2 Jan 30, 2021 v0.0.1 Jan 30, 2021 Changes in this version + func Deflate(w http.ResponseWriter, r *http.Request, body []byte, code int) (int, error) + func Gzip(w http.ResponseWriter, r *http.Request, body []byte, code int) (int, error) + func Zlib(w http.ResponseWriter, r *http.Request, body []byte, code int) (int, error) + type CompressWriter interface + Close func() error + Flush func() error + Write func(p []byte) (int, error) + type Compressor struct + func NewDeflateWriter(w http.ResponseWriter, r *http.Request) *Compressor + func NewGzipWriter(w http.ResponseWriter, r *http.Request) *Compressor + func NewZlibWriter(w http.ResponseWriter, r *http.Request) *Compressor + func (c *Compressor) Close() error + func (c *Compressor) Write(b []byte) (int, error)