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.
Features
Installation
To use this crate, you can run cmd:
cargo add http-compress
Use
Compress
use *;
use BuildHasherDefault;
use ;
let headers: = with_hasher;
let data: = vec!;
let body: = from.decode;
assert_eq!;
Encode
use *;
let _ = Gzip.encode;
let _ = Deflate.encode;
let _ = Br.encode;
Decode
use *;
let _ = Gzip.decode;
let _ = Deflate.decode;
let _ = Br.decode;
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Contact
For any inquiries, please reach out to the author at root@ltpp.vip.