bool matches(String method, String path) { final normalizedPath = _normalizePath(path); return this.method == method && matcher.hasMatch(normalizedPath); }