hyperlane-plugin-rewrite 23.0.0

A high-performance HTTP URL rewrite and redirect plugin for the Hyperlane framework featuring canonical host/HTTPS enforcement (X-Forwarded-Proto aware), trailing-slash and duplicate-slash normalization, O(1) XxHash3_64 static tables, segment-bounded prefix rules, and compiled regex rules.
Documentation
//! hyperlane-plugin-rewrite
//!
//! High-performance HTTP URL rewrite and redirect plugin for Hyperlane with
//! canonical host/HTTPS enforcement (`X-Forwarded-Proto` aware), trailing-slash
//! and duplicate-slash normalization, `O(1)` `XxHash3_64` exact tables, prefix
//! strip/rewrite rules, and precompiled regex rules.

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

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

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

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

use std::{
    borrow::Cow,
    cmp::Reverse,
    collections::{HashMap, VecDeque},
    error,
    fmt::{self, Display, Formatter},
    hash::{BuildHasherDefault, Hasher},
    mem,
    sync::{Arc, OnceLock},
};

use {
    hyperlane::{
        Context, FORWARDED, HOST, HttpStatus, LOCATION, OK, RequestHeaders, RequestQuerys,
        Response, ResponseError, ServerHook, Status, Stream, X_FORWARDED_PROTO,
    },
    lombok_macros::*,
    regex::{Error, NoExpand, Regex, RegexSet},
};