View definition

(*Response).WriteGzipLevel

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

Description

WriteGzipLevel writes response with gzipped body to w.

Level is the desired compression level:

* CompressNoCompression
* CompressBestSpeed
* CompressBestCompression
* CompressDefaultCompression

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

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

WriteGzipLevel is referenced in 1 repository

github.com/valyala/fasthttp