http-compress 3.0.18

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
9
10
11
12
13
14
/// The header name for content encoding.
pub const CONTENT_ENCODING: &str = "content-encoding";

/// The content encoding type for gzip.
pub const CONTENT_ENCODING_GZIP: &str = "gzip";

/// The content encoding type for deflate.
pub const CONTENT_ENCODING_DEFLATE: &str = "deflate";

/// The content encoding type for brotli.
pub const CONTENT_ENCODING_BROTLI: &str = "br";

/// An empty string.
pub const EMPTY_STR: &str = "";