brotli

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL