hyperlane-plugin-rewrite 22.14.1

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;

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

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

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

use std::{
    borrow::Cow,
    cmp::Reverse,
    collections::VecDeque,
    error,
    fmt::{self, Display, Formatter},
    sync::OnceLock,
};

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