code: function (host) {
          /*
          * For Host match, we are considering the port with the host, hence we are using getRemote() instead of getHost()
          * We need to address three cases for the host urlStr
          * 1. * It matches all the host + protocol,  hence we are not having any parsing logic for it.
          * 2. *.foo.bar.com Here the prefix could be anything but it should end with foo.bar.com
          * 3. foo.bar.com This is the absolute matching needs to done.
          */
          var matchRegexObject = this._matchPatternObject;
          return (
              this.matchAnyHost(matchRegexObject) ||
              this.matchAbsoluteHostPattern(matchRegexObject, host) ||
              this.matchSuffixHostPattern(matchRegexObject, host)
          );
      }
docs: Tests if the given host string, is allowed by the pattern.
  
  @param {String=} host The host to be checked if the pattern allows.
  @return {Boolean=}