package compress

Import Path
	github.com/gofiber/fiber/v2/middleware/compress (on go.dev)

Dependency Relation
	imports 2 packages, and imported by one package

Involved Source Files compress.go config.go
Package-Level Type Names (total 2)
/* sort by: | */
Config defines the config for middleware. Level determines the compression algorithm Optional. Default: LevelDefault LevelDisabled: -1 LevelDefault: 0 LevelBestSpeed: 1 LevelBestCompression: 2 Next defines a function to skip this middleware when returned true. Optional. Default: nil func New(config ...Config) fiber.Handler var ConfigDefault
Level is numeric representation of compression level const LevelBestCompression const LevelBestSpeed const LevelDefault const LevelDisabled
Package-Level Functions (only one)
New creates a new middleware handler
Package-Level Variables (only one)
ConfigDefault is the default config
Package-Level Constants (total 4)
Represents compression level that will be used in the middleware
Represents compression level that will be used in the middleware
Represents compression level that will be used in the middleware
Represents compression level that will be used in the middleware