View definition


Defined in


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