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
/// Represents different compression algorithms supported by the library.
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum Compress {
    /// Gzip compression algorithm.
    Gzip,
    /// Deflate compression algorithm.
    Deflate,
    /// Brotli compression algorithm.
    Br,
    /// Represents an unknown or unsupported compression algorithm.
    #[default]
    Unknown,
}