Function map_path

Source
pub fn map_path(
    path: &str,
    path_template: &str,
) -> Option<Vec<(String, Option<String>)>>
Expand description

Maps a request path against a template path, populating any variables from the template. Returns None if the paths don’t match.