code: func (r *ComplexRule) Match(req *http.Request) bool {
  	// validate RequestMatcher
  	// includes if and path
  	if !r.RequestMatcher.Match(req) {
  		return false
  	}
  
  	// validate extensions
  	if !r.matchExt(req.URL.Path) {
  		return false
  	}
  
  	// if regex is nil, ignore
  	if r.Regexp == nil {
  		return true
  	}
  	// otherwise validate regex
  	return r.regexpMatches(req.URL.Path) != nil
  }
docs: // Match satisfies httpserver.Config.
  //
  // Though ComplexRule embeds a RequestMatcher, additional
  // checks are needed which requires a custom implementation.