pub fn map_path( path: &str, path_template: &str, ) -> Option<Vec<(String, Option<String>)>>
Maps a request path against a template path, populating any variables from the template. Returns None if the paths don’t match.