Skip to main content

route_label

Function route_label 

Source
pub fn route_label(req: &Request, routes: &RouteAllowList) -> String
Expand description

Resolve the route-template label for a request.

Reads the MatchedPath extension that axum’s router inserts before invoking per-route layers; falls back to UNKNOWN_ROUTE if the extension is absent (no matching route) or if the matched template is not on the allow-list (cardinality guard).