View definition

(*Response).WriteDeflateLevel

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

Description

WriteDeflateLevel writes response with deflated body to w.

Level is the desired compression level:

* CompressNoCompression
* CompressBestSpeed
* CompressBestCompression
* CompressDefaultCompression

The method deflates response body and sets 'Content-Encoding: deflate' header before writing response to w.

WriteDeflateLevel doesn't flush response to w for performance reasons.

WriteDeflateLevel is referenced in 1 repository

github.com/valyala/fasthttp