Expand description
Route resolution helpers — matching a request path + verb against a
controller’s &[RouteDef] and extracting the path/query/body parameters.
Used by the #[controller] macro’s generated dispatch; exposed for tools
and tests that need to resolve routes directly.
Functions§
- match_
pattern - Match a route pattern against an action path. Returns extracted path parameters if matched.
- resolve
- Main route resolution function. Tries each route in declaration order and returns the first whose path pattern and verb both match, along with its extracted parameters.