Skip to main content

match_route

Function match_route 

Source
pub fn match_route<'a>(
    routes: &'a [CompiledRoute],
    path: &str,
    method: &str,
) -> Option<&'a CompiledRoute>
Expand description

Longest path_prefix match, then narrow by methods (empty = any).