Skip to main content

match_route_cached

Function match_route_cached 

Source
pub fn match_route_cached(
    cache: &mut CompiledRouteCache,
    template: &str,
    request_path: &str,
    exact: bool,
) -> Option<RouteMatch>
Expand description

Match a route template against a request path using a compiled cache.

Reuses cached segment patterns to avoid per-request parsing allocations.