hyperlane-plugin-tenant 23.3.2

A zero-allocation multi-tenant resolution and isolation plugin for the Hyperlane framework supporting X-Tenant-Id header, Host subdomain, and path-prefix extraction, XxHash3_64 tenant registry, pluggable TenantResolver, and prebuilt 400/403/404 wire responses.
Documentation
//! hyperlane-plugin-tenant
//!
//! Multi-tenant resolution and isolation middleware for Hyperlane supporting
//! header, host-subdomain, and path-prefix tenant extraction, `XxHash3_64`
//! registry lookups, pluggable [`TenantResolver`] hooks, and prebuilt error
//! wire responses.

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,
    sync::{Arc, OnceLock},
};

use {
    hyperlane::{
        CONTENT_TYPE, Context, HOST, HashMapXxHash3_64, HttpStatus, Request, Response,
        ResponseError, ServerHook, Status, Stream, hash_map_xx_hash3_64,
    },
    lombok_macros::*,
};