Expand description
Path template matching: convert path templates to regexes, match URLs against templates, detect parameter segments, and suggest parameterized templates from observed paths.
Structs§
Functions§
- is_
param_ segment - Check if a path segment looks like a parameter value (numeric or UUID).
- match_
path - Match a URL path against a list of templates. Returns the first matching template.
- path_
to_ regex - suggest_
param_ templates - Given a list of observed paths, suggest parameterized path templates.