hyperlane-plugin-negotiate 23.0.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
//!
//! Response negotiation for the Hyperlane framework: a middleware that answers
//! with the content coding the client accepts, and a middleware that answers a
//! conditional request with 304 Not Modified while a validator still matches.

mod r#const;
mod r#fn;
mod r#impl;
mod r#static;
mod r#struct;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

pub use r#struct::*;

pub(crate) use {r#const::*, r#fn::*, r#static::*};

#[cfg(target_arch = "aarch64")]
#[cfg(target_feature = "neon")]
#[cfg(target_endian = "little")]
use std::arch::aarch64::{
    uint32x2_t, uint32x4_t, uint64x2_t, vaddq_u64, vdup_n_u32, veorq_u64, vextq_u64, vld1q_u8,
    vld1q_u64, vmlal_u32, vmovn_u64, vmull_u32, vreinterpretq_u32_u64, vreinterpretq_u64_u8,
    vreinterpretq_u64_u32, vshlq_n_u64, vshrn_n_u64, vshrq_n_u64, vst1q_u64,
};
use std::{collections::VecDeque, hash::Hasher, str::from_utf8, sync::OnceLock};

use {
    http_compress::{Compress, XxHash3_64},
    hyperlane::{
        ACCEPT_ENCODING, CACHE_CONTROL, COMMA, CONTENT_ENCODING, CONTENT_TYPE, Context, ETAG,
        HttpStatus, IF_NONE_MATCH, Method, Request, RequestHeaders, Response, ResponseHeaders,
        ServerHook, Status, Stream, TEXT_EVENT_STREAM, VARY, VARY_ACCEPT_ENCODING,
    },
};