View definition

func CompressHandlerLevel

Defined in github.com/valyala/fasthttp/server.go

Description

CompressHandlerLevel returns RequestHandler that transparently compresses response body generated by h if the request contains 'gzip' or 'deflate' 'Accept-Encoding' header.

Level is the desired compression level:

* CompressNoCompression
* CompressBestSpeed
* CompressBestCompression
* CompressDefaultCompression

CompressHandlerLevel is referenced in 1 repository

github.com/valyala/fasthttp