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§
- Compiled
Route Cache - Cache of pre-compiled route template patterns.
- 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_
route_ cached - Match a route template against a request path using a compiled cache.
- match_
route_ cached_ with_ segments - Match a route template against pre-split request path segments.
- match_
single_ route - Match a single route template against a request path.
- resolve_
route_ path - Resolve a route path against a base path.
- split_
request_ path - Split a request path into segments, filtering empty parts.