matches_pattern

Function matches_pattern 

Source
pub fn matches_pattern(path: &str, pattern: &str) -> bool
Expand description

Check if a path matches a wildcard pattern

  • can appear anywhere and matches any sequence of characters If method is provided, pattern can optionally specify a method prefix like “POST /api/*”