Expand description
HTTP response (de)compression libraries
Gzip, Brotli, Zstd, and dictionary-compressed Zstd (dcz, RFC 9842) are supported.
Structs§
- Dictionary
Data - Dictionary data for RFC 9842 shared dictionary compression.
- Response
Compression Ctx - The response compression object. Currently support gzip compression and brotli decompression.
Enums§
Constants§
- COMPRESSION_
ERROR - The type of error to return when (de)compression fails
- DCZ_
HEADER_ SIZE - Re-export RFC 9842 constants for external use. Re-export RFC 9842 constants for external use. Re-export RFC 9842 constants for external use. RFC 9842 header size: 8-byte magic + 32-byte SHA-256 hash.
- DCZ_
MAGIC - Re-export RFC 9842 constants for external use. Re-export RFC 9842 constants for external use. Re-export RFC 9842 constants for external use. RFC 9842 magic number for dcz.
Traits§
- Encode
- The trait for both compress and decompress because the interface and syntax are the same: encode some bytes to other bytes