Categorygithub.com/lemmi/compress
modulepackage
0.0.0-20161005222315-481bb1aa824f
Repository: https://github.com/lemmi/compress.git
Documentation: pkg.go.dev

# README

compress

GoDoc

Middleware to compress http responses with gzip or deflate

# Functions

New wraps a http.Handler and adds compression via gzip or deflate to the response.
NewLevel allows to set the compression level.

# Variables

CompressMaxBuf is the upper bound for buffered compression.
CompressMinLength is the lower bound for compression.