code: def update_host(self, url: URL) -> None:
          
          # get host/port
          if not url.host:
              raise InvalidURL(url)
  
          # basic auth info
          username, password = url.user, url.password
          if username:
              self.auth = helpers.BasicAuth(username, password or '')
docs: Update destination host, port and connection type (ssl).