Gzip

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GzipType

type GzipType struct {
	Next      http.Handler
	Paths     []string `gfType:"string,filepath" gfRequired:"true"`
	MinLength int      `gfDefault:"500" gfMin:"100"`
	LineNo    int      `gfDefault:"1"`
}

func NewGzipServer

func NewGzipServer(n http.Handler, p []string, ml int) *GzipType

func (*GzipType) InitializeWithConfigData

func (hdlr *GzipType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*GzipType) PreValidate

func (hdlr *GzipType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (GzipType) ServeHTTP

func (hdlr GzipType) ServeHTTP(www http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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