compress

package
v4.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package compress implements an RFC9110 compliant handler for the "Accept-Encoding" header.

This package supports "identity", "gzip", "deflate", and "zstd".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(next http.Handler) http.Handler

Handler wraps the provided http.Handler and provides transparent body compression based on a Request's "Accept-Encoding" header.

Each handler instance pools its own compressors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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