pub fn match_uri_template(
template: &str,
uri: &str,
) -> Option<BTreeMap<String, String>>Expand description
Helper to match an incoming URI against a URI template pattern with {variable} placeholders.
Returns Some(map) if the URI matches the pattern, mapping each {variable} name
to its extracted value string. Returns None if the URI does not match.