http_compress/lib.rs
1//! http-compress
2//!
3//! A high-performance async library for HTTP compression/decompression,
4//! supporting Brotli, Deflate, and Gzip algorithms. Provides both compression
5//! and decompression capabilities with optimized memory usage,
6//! ideal for HTTP clients/servers and network programming.
7
8mod brotli;
9mod compress;
10mod deflate;
11mod gzip;
12
13pub use compress::*;
14
15pub use twox_hash::XxHash3_64;
16
17use std::{
18 borrow::Cow,
19 collections::HashMap,
20 fmt,
21 io::{BufReader, BufWriter, Read, prelude::*},
22 str::FromStr,
23};
24
25use ::brotli::Decompressor;
26use core::hash::BuildHasherDefault;
27use flate2::{
28 Compression,
29 read::{DeflateDecoder, GzDecoder},
30 write::{DeflateEncoder, GzEncoder},
31};