hyperlane-plugin-etag 23.3.0

An opt-in automatic ETag and HTTP conditional request plugin for the Hyperlane framework providing strong/weak XxHash3_64 entity tags, zero-allocation If-None-Match 304 Not Modified, and If-Match 412 Precondition Failed optimistic concurrency.
Documentation
//! hyperlane-plugin-etag
//!
//! Opt-in automatic ETag and HTTP conditional request middleware for Hyperlane
//! supporting strong and weak `XxHash3_64` tags, zero-allocation `If-None-Match`
//! (`304 Not Modified`), and `If-Match` (`412 Precondition Failed`) optimistic
//! concurrency checks.

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

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

pub use {r#const::*, r#enum::*, r#fn::*, r#struct::*, r#trait::*};

pub(crate) use r#static::*;

use std::{
    collections::VecDeque,
    hash::Hasher,
    str::from_utf8,
    sync::{Arc, OnceLock},
};

use {
    hyperlane::{
        CONTENT_TYPE, Context, ETAG, HttpStatus, IF_MATCH, Method, Request, Response,
        ResponseError, ServerHook, Status, Stream, XxHash3_64,
    },
    lombok_macros::*,
};