code: function match(mapEntry, request, route) {
      var keys = [];
  
      var m = pathToRegexpService.pathToRegexp(mapEntry.path, keys).exec(request.url);
  
      if (!m) {
        return false;
      }
  
      if (mapEntry.method != request.method) {
        return false;
      }
  
      route.params = {};
      route.path = m[0];
      route.handler = mapEntry.handler;
  
      // Assign url parameters to the request.
      for (var i = 1; i < m.length; i++) {
        var key = keys[i - 1];
        var prop = key.name;
        var val = decodeParam(m[i]);
  
        if (val !== undefined || !(hasOwnProperty.call(route.params, prop))) {
          route.params[prop] = val;
        }
      }
  
      request.params = route.params;
      return true;
    }
docs: Private static methods