Skip to main content

Module path_matching

Module path_matching 

Source
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§

CompiledTemplates

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.