http-compress 23.4.0

A high-performance async library for HTTP compression/decompression, supporting Brotli, Deflate, and Gzip algorithms. Provides both compression and decompression capabilities with optimized memory usage, ideal for HTTP clients/servers and network programming.
Documentation
1
2
3
4
5
6
7
8
/// Minimum output buffer reserve increment during raw deflate compression and decompression.
pub(crate) const DEFLATE_MIN_RESERVE: usize = 4096;

/// Default raw deflate compression level tuned for high-throughput HTTP responses.
pub(crate) const DEFLATE_DEFAULT_LEVEL: u32 = 4;

/// Maximum per-step output buffer growth increment while decompressing raw deflate streams.
pub(crate) const DEFLATE_MAX_GROW_STEP: usize = 1024 * 1024;