bool match(String method, String path) { if (this.method != '*' && this.method.toUpperCase() != method.toUpperCase()) { return false; } return _regex.hasMatch(path); }