match method

bool match(
  1. String method,
  2. String path
)

Implementation

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

  return _regex.hasMatch(path);
}