http-compress 22.3.3

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
//! http-compress
//!
//! 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.

mod brotli;
mod compress;
mod deflate;
mod gzip;
#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;
mod xx_hash3_64;

pub use {compress::*, xx_hash3_64::*};

use std::{
    borrow::Cow,
    collections::HashMap,
    fmt,
    io::{self, BufReader, BufWriter, Read, prelude::*},
    str::FromStr,
};

use {
    ::brotli::{CompressorWriter, Decompressor},
    core::hash::BuildHasherDefault,
    flate2::{
        Compression,
        read::{DeflateDecoder, GzDecoder},
        write::{DeflateEncoder, GzEncoder},
    },
    twox_hash::xxhash3_64::{DEFAULT_SECRET_LENGTH, RawHasher, SecretBuffer},
};