compress

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMinSize = 1024

DefaultMinSize is the default minimum size (in bytes) required to enable compression. See https://github.com/klauspost/compress/blob/9559b037e79ad673c71f6ef7c732c00949014cd2/gzhttp/compress.go#L47.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, conf dynamic.Compress, name string) (http.Handler, error)

New creates a new compress middleware.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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