BrotliHttpCompressor
Hierarchy
- HttpCompressor
- BrotliHttpCompressor
Index
Methods
Properties
Methods
__init__
Initialize the brotli compressor.
Parameters
optionalkeyword-onlyquality: int = 6
Compression level, from the fastest to the best compression.
Returns None
compress
Compress a request body.
Parameters
data: bytes
The raw bytes to compress.
Returns bytes
The compressed bytes.
Properties
content_encoding
Value sent in the Content-Encoding header, for example gzip or br.
Compresses request bodies using brotli.
Requires the
brotliextra:pip install "apify-client[brotli]".