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 {
26 ::brotli::Decompressor,
27 core::hash::BuildHasherDefault,
28 flate2::{
29 Compression,
30 read::{DeflateDecoder, GzDecoder},
31 write::{DeflateEncoder, GzEncoder},
32 },
33};