compress

package
v0.0.0-...-202847b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCompressor

func WithCompressor() mw.Middleware

WithCompressor is a middleware applies the GZIP or deflate algorithm on the bytes writer. GZIP or deflate usage depends on the HTTP Accept Encoding header. Flush(), Hijack() and CloseNotify() interfaces will be preserved. No header set, no compression takes place. GZIP has priority before deflate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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