code: def _parse_string_host(host_str):
          
          host_str = EsParser._fix_host_prefix(host_str)
          parsed_url = urlparse(host_str)
          host = {HostParsing.HOST: parsed_url.hostname}
          if parsed_url.port:
              host[HostParsing.PORT] = parsed_url.port
          if parsed_url.scheme == HostParsing.HTTPS:
              host[HostParsing.PORT] = parsed_url.port or EsParser.SSL_DEFAULT_PORT
              host[HostParsing.USE_SSL] = True
              host[HostParsing.SCHEME] = HostParsing.HTTPS
          elif parsed_url.scheme:
              host[HostParsing.SCHEME] = parsed_url.scheme
          if parsed_url.username or parsed_url.password:
              host[HostParsing.HTTP_AUTH] = '%s:%s' % (parsed_url.username, parsed_url.password)
          if parsed_url.path and parsed_url.path != '/':
              host[HostParsing.URL_PREFIX] = parsed_url.path
          return host
docs: Parse host string into a dictionary host
          :param host_str:
          :return: