Skip to main content

hyperlane_plugin_compression/
lib.rs

1//! hyperlane-plugin-compression
2//!
3//! A compression plugin for the Hyperlane framework, answering a client with
4//! the encoding it asked for.
5
6mod r#const;
7mod r#impl;
8mod r#static;
9mod r#struct;
10
11pub use {hyperlane::Compress, r#struct::*};
12
13pub(crate) use r#static::*;
14
15use r#const::*;
16
17use std::sync::OnceLock;
18
19use {
20    encoding_negotiator::CompressionPolicy,
21    hyperlane::{
22        ACCEPT_ENCODING, CONTENT_ENCODING, CONTENT_TYPE, Context, Response, ServerHook, Status,
23        Stream, VARY, VARY_ACCEPT_ENCODING,
24    },
25    lombok_macros::*,
26};