hyperlane-plugin-idempotency 23.3.1

A production HTTP Idempotency-Key middleware plugin for the Hyperlane framework featuring XxHash3_64 request fingerprinting (422 mismatch), 64-way sharded bounded InMemoryIdempotencyStore + async IdempotencyStore trait, InFlight concurrent duplicate guard (409 Conflict), and zero-copy cached response replay with Idempotent-Replayed headers.
Documentation
mod idempotency;

use super::*;

use std::{
    hint::black_box,
    io,
    net::TcpListener,
    str::{Utf8Error, from_utf8},
    sync::atomic::AtomicUsize,
    time::Instant,
};

use hyperlane::{
    Server, ServerConfig, ServerControlHook, ServerError, ServerProtocol,
    tokio::{
        self,
        io::{AsyncReadExt, AsyncWriteExt},
        net::TcpStream,
        spawn,
        task::{JoinError, JoinHandle},
        time::{error::Elapsed, sleep, timeout},
    },
};