gzip

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default added in v0.1.53

func Default() znet.HandlerFunc

func New

func New(conf Config) znet.HandlerFunc

Types

type Config added in v0.1.53

type Config struct {
	// CompressionLevel gzip compression level to use
	CompressionLevel int
	// PoolMaxSize maximum number of resource pools
	PoolMaxSize int
	// MinContentLength minimum content length to trigger gzip, the unit is in byte.
	MinContentLength int
}

Config gzip configuration

Jump to

Keyboard shortcuts

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