http-compress 22.12.0

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.
Documentation

http-compress

Bounded HTTP Compression & Accept-Encoding Negotiation

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs · Agent Engineering Rules


Overview

Gzip, deflate, and brotli encoders/decoders with strict decompression bomb caps (MAX_DECOMPRESSED_BYTES = 64 MiB) and zero-allocation RFC 9110 Accept-Encoding negotiation.

This crate is a member of the hyperlane unified Rust 2024 workspace. All plugin crates are opt-in and transparent (Status::Continue) when unconfigured.

Responsibilities & Module Layout

  • compress — Compress::from_accept_encoding, as_str, and bounded stream codecs

Installation

cargo add http-compress

Verification

Run crate-scoped formatting, lint, and test gates from the workspace root:

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p http-compress --all-features --all-targets -- -D warnings
cargo test -p http-compress --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.