code: def _validate(url):
      
      if url is None:
          return
      parsed = urlparse(url)
      if not parsed.scheme or not parsed.netloc:
          raise ValueError("Invalid URL header")
docs: Validate a url.
  
      :param str url: Polling URL extracted from response header.
      :raises: ValueError if URL has no scheme or host.