hyperlane-plugin-negotiate 23.3.0

A response negotiation plugin for the Hyperlane framework, answering with the content coding the client accepts and with 304 Not Modified while a validator still matches.
Documentation

hyperlane-plugin-negotiate

Content-Encoding & Conditional 304 Plugin

crates.io docs.rs Rust 2024 License: MIT

Workspace Overview · API Docs


Overview

Opt-in CompressMiddleware (Accept-Encoding negotiation + Vary) and ConditionalMiddleware (strong ETag generation + 304 Not Modified).

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

  • struct / impl — CompressMiddleware, CompressConfig, and ConditionalMiddleware

Installation

cargo add hyperlane-plugin-negotiate

Verification

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

cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-negotiate --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-negotiate --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.