Help us shape the future of Go! Take the 2026 Go Developer Survey

decompress

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Decompression errors distinguish unsupported encodings from corrupt input.
	ErrUnsupportedEncoding = errors.New("decompress: unsupported content encoding")
	ErrInvalidBody         = errors.New("decompress: invalid compressed body")
)

Functions

func New

func New(configs ...Config) zinc.Middleware

New transparently exposes gzip input to downstream handlers.

Types

type Config

type Config struct {
	MaxDecompressedSize int64
}

Config controls request decompression and expansion limits.

Jump to

Keyboard shortcuts

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