code: func (r *routeRegexp) Match(req *http.Request, match *RouteMatch) bool {
  	if r.regexpType != regexpTypeHost {
  		if r.regexpType == regexpTypeQuery {
  			return r.matchQueryString(req)
  		}
  		path := req.URL.Path
  		if r.options.useEncodedPath {
  			path = req.URL.EscapedPath()
  		}
  		return r.regexp.MatchString(path)
  	}
  
  	return r.regexp.MatchString(getHost(req))
  }
docs: // Match matches the regexp against the URL host or path.