class_docstr: A stateful downloader to maintain a session to the website
      
class_docstr_tok: ["A","stateful","downloader","to","maintain","a","session","to","the","website"]
docstr: Parameters
  ----------
  headers: dict, optional
    Header fields to be provided to the session. Unless User-Agent provided, a custom
    one, available in `DEFAULT_USER_AGENT` constant of this module will be used.
code: def __init__(self, headers=None, **kwargs):
      """
  
      Parameters
      ----------
      headers: dict, optional
        Header fields to be provided to the session. Unless User-Agent provided, a custom
        one, available in `DEFAULT_USER_AGENT` constant of this module will be used.
      """
      super(HTTPDownloader, self).__init__(**kwargs)
      self._session = None
      headers = headers.copy() if headers else {}
      if "user-agent" not in map(str.lower, headers):
          headers["User-Agent"] = DEFAULT_USER_AGENT
      self._headers = headers
  
imports: import re
  import requests
  import requests.auth
  from requests.utils import parse_dict_header
  import io
  from time import sleep
  from ..None import __version__
  from ..utils import ensure_list_from_str, ensure_dict_from_str, ensure_bytes
  from ..dochelpers import borrowkwargs
  from ..ui import ui
  from ..utils import auto_repr
  from ..support.network import get_url_filename
  from ..support.network import get_response_disposition_filename
  from ..support.network import rfc2822_to_epoch
  from ..support.cookies import cookies_db
  from ..support.status import FileStatus
  from ..support.exceptions import AccessDeniedError, AccessFailedError, CapturedException, DownloadError, UnhandledRedirectError
  from .base import Authenticator
  from .base import BaseDownloader, DownloaderSession
  from logging import getLogger
  from ..log import LoggerHelper
label_desc: Use image node_id 1 to create a new HTTPDownloader object from inherited base classes: BaseDownloader with example: obj = HTTPDownloader(headers)