docs: def match_https_hostname(cls, hostname):
          """
          :param hostname: a string
          :returns: an :py:class:`~httpretty.core.URLMatcher` or ``None``
          """
          items = sorted(
              cls._entries.items(),
              key=lambda matcher_entries: matcher_entries[0].priority,
              reverse=True,
          )
          for matcher, value in items:
              if matcher.info is None:
                  pattern_with_port = "https://{0}:".format(hostname)
                  pattern_without_port = "https://{0}/".format(hostname)
                  hostname_pattern = (
                      hostname_re
                      .match(matcher.regex.pattern)
                      .group(0)
                  )
                  for pattern in [pattern_with_port, pattern_without_port]:
                      if re.match(hostname_pattern, pattern):
                          return matcher
  
              elif matcher.info.hostname == hostname:
                  return matcher
          return None