Expand description
Iterative path template matcher for server-side route resolution.
Matches request paths against route path templates without regex.
Supports :param, :param? (optional), and *splat segments.
Structs§
- Route
Match - Result of matching a request path against a route path template.
Functions§
- compute_
route_ base - Compute the new route base from a matched route’s consumed request segments.
- is_
relative_ path - Check whether a route path is relative (does NOT start with
/). - match_
single_ route - Match a single route template against a request path.
- resolve_
route_ path - Resolve a route path against a base path.