Documentation ¶ Index ¶ func NewWrapper(cfg Config) (func(http.Handler) http.HandlerFunc, error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewWrapper ¶ func NewWrapper(cfg Config) (func(http.Handler) http.HandlerFunc, error) NewWrapper returns a new Brotli compressing wrapper. Types ¶ type Config ¶ type Config struct { // ExcludedContentTypes is the list of content types for which we should not compress. ExcludedContentTypes []string // MinSize is the minimum size (in bytes) required to enable compression. MinSize int } Config is the Brotli handler configuration. Source Files ¶ View all Source files brotli.go Click to show internal directories. Click to hide internal directories.