Expand description
URL routing and proxy utilities for Reinhardt framework.
This crate provides URL routing, pattern matching, and proxy functionality for the Reinhardt web framework. It is a unified interface over the following internal crates:
reinhardt-routers: URL routing and pattern matching with middleware supportreinhardt-routers-macros: Compile-time URL validation macrosreinhardt-proxy: Lazy relationship loading for ORM
§Features
§Route Middleware Support
Per-route middleware configuration is now available. You can attach middleware to specific routes or route groups:
ⓘ
let router = UnifiedRouter::new()
.function("/public", Method::GET, handler)
.function("/protected", Method::GET, handler);
// .with_route_middleware(...) // Route-specific middlewareFeatures:
- Per-route middleware configuration
- Route group middleware with inheritance
- Middleware composition and chaining
- Proper execution order: global → group → route → handler
See reinhardt-routers crate documentation for detailed usage and examples.
Re-exports§
pub use reinhardt_routers_macros as routers_macros;routers-macros