3 releases (1 stable)
new 1.0.0 | Dec 22, 2024 |
---|---|
0.0.2 | Dec 22, 2024 |
0.0.1 | Dec 22, 2024 |
#16 in #redirect
31 downloads per month
Used in http-request
11KB
109 lines
http-compress
A lightweight library for decompressing HTTP responses supporting Brotli, Deflate, and Gzip.
Features
Installation
To use this crate, you can run cmd:
cargo add http-compress
Use
use http_compress::*;
use http_type::*;
use std::collections::HashMap;
let headers: HttpHeaderMap = HashMap::new();
let data: Vec<u8> = vec![];
let body: Vec<u8> = Compress::from(&headers).decode(&data, 1024);
assert_eq!(body, data);
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 ltpp-universe root@ltpp.vip.
Dependencies
~11MB
~347K SLoC