http-compress 23.0.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
use super::*;

thread_local! {
    /// Thread-local typed buffer pool reused across Brotli encode and decode operations.
    pub(crate) static BROTLI_BUFFER_POOL: RefCell<BrotliBufferPool> = RefCell::new(BrotliBufferPool::default());
}