Expand description
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.
Structs§
- Compiled
Rewrite - Precompiled zero-allocation-fast-path URL rewrite & redirect engine backing
RewritePlugin. - Exact
Rewrite Rule - Static exact-path redirect or internal rewrite entry.
- Prefix
Rewrite Rule - Segment-bounded path-prefix strip or rewrite entry.
- Regex
Rewrite Rule - Regular-expression rewrite or redirect definition.
- Rewrite
Config - User-facing configuration for
RewritePluginandCompiledRewrite. - Rewrite
Hook - Opt-in request middleware performing canonical redirects, path normalization, and URL rewrites.
- Rewrite
Plugin - Process-wide
RewritePluginsingleton storing aCompiledRewrite.
Enums§
- Redirect
Status - Supported HTTP redirect status codes for short-circuit rewrite rules.
- Rewrite
Action - Action taken when a rewrite rule matches an incoming request path.
- Rewrite
Error - Errors produced when compiling
RewriteConfigintoCompiledRewrite. - Rewrite
Outcome - Outcome returned by
CompiledRewrite::applywhen evaluating a request context. - Trailing
Slash Mode - Trailing-slash normalization policy applied to non-root paths (
path != "/").
Constants§
- ATTR_
ORIGINAL_ PATH - Context attribute key preserving the pre-rewrite request path after an internal rewrite.