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
Click to show internal directories.
Click to hide internal directories.