Crates.io | http-compress |
lib.rs | http-compress |
version | 1.13.0 |
source | src |
created_at | 2024-12-22 00:06:32.463427 |
updated_at | 2025-01-09 00:46:46.486294 |
description | A lightweight library for decompressing HTTP responses supporting Brotli, Deflate, and Gzip. |
homepage | |
repository | https://github.com/ltpp-universe/http-compress.git |
max_upload_size | |
id | 1491567 |
size | 12,629 |
A lightweight library for decompressing HTTP responses supporting Brotli, Deflate, and Gzip.
To use this crate, you can run cmd:
cargo add http-compress
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);
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request.
For any inquiries, please reach out to the author at ltpp-universe root@ltpp.vip.