match method

Route? match(
  1. Request request
)

Match route based on request

Implementation

Route? match(Request request) {
  var method = request.method;
  method = (method == Request.head) ? Request.get : method;
  route = _router.match(method, request.url.path);
  return route;
}