Module compression

Source
Expand description

HTTP response (de)compression libraries

Brotli and Gzip and partially supported.

Structs§

ResponseCompressionCtx
The response compression object. Currently support gzip compression and brotli decompression.

Enums§

Algorithm

Constants§

COMPRESSION_ERROR
The type of error to return when (de)compression fails

Traits§

Encode
The trait for both compress and decompress because the interface and syntax are the same: encode some bytes to other bytes