Skip to main content

Crate reinhardt_urls

Crate reinhardt_urls 

Source
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 support
  • reinhardt-routers-macros: Compile-time URL validation macros
  • reinhardt-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 middleware

Features:

  • 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

Modules§

preluderouters
proxy
Reinhardt Association Proxy
routers
Reinhardt Routers