code: def __need_ssl(self, host_and_port=None):
          
          if not host_and_port:
              host_and_port = self.current_host_and_port
  
          return host_and_port in self.__ssl_params
docs: Whether current host needs SSL or not.
  
          :param (str,int) host_and_port: the host/port pair to check, default current_host_and_port