class_docstr: Interact with HTTP servers asynchronously.
  
  :param method: the API method to be called
  :param http_conn_id: http connection id that has the base
      API url i.e https://www.google.com/ and optional authentication credentials. Default
      headers can also be specified in the Extra field in json format.
  :param auth_type: The auth type for the service
class_docstr_tok: ["Interact","with","HTTP","servers","asynchronously",".",":","param","method",":","the","API","method","to","be","called",":","param","http_conn_id",":","http","connection","id","that","has","the","base","API","url","i.e","https",":","\/\/www.google.com\/","and","optional","authentication","credentials",".","Default","headers","can","also","be","specified","in","the","Extra","field","in","json","format",".",":","param","auth_type",":","The","auth","type","for","the","service"]
code: def _process_extra_options_from_connection(
      cls, conn: Connection, extra_options: dict
  ) -> dict:
      extra = conn.extra_dejson
      extra.pop("stream", None)
      extra.pop("cert", None)
      proxies = extra.pop("proxies", extra.pop("proxy", None))
      timeout = extra.pop("timeout", None)
      verify_ssl = extra.pop("verify", extra.pop("verify_ssl", None))
      allow_redirects = extra.pop("allow_redirects", None)
      max_redirects = extra.pop("max_redirects", None)
  
      if proxies is not None and "proxy" not in extra_options:
          extra_options["proxy"] = proxies
      if timeout is not None and "timeout" not in extra_options:
          extra_options["timeout"] = timeout
      if verify_ssl is not None and "verify_ssl" not in extra_options:
          extra_options["verify_ssl"] = verify_ssl
      if (
          allow_redirects is not None
          and "allow_redirects" not in extra_options
      ):
          extra_options["allow_redirects"] = allow_redirects
      if (
          max_redirects is not None
          and "max_redirects" not in extra_options
      ):
          extra_options["max_redirects"] = max_redirects
      return extra
  
imports: from __future__ import annotations
  import asyncio
  from typing import TYPE_CHECKING, Any, Callable
  import aiohttp
  import requests
  import tenacity
  from aiohttp import ClientResponseError
  from asgiref.sync import sync_to_async
  from requests.auth import HTTPBasicAuth
  from requests.models import DEFAULT_REDIRECT_LIMIT
  from requests_toolbelt.adapters.socket_options import TCPKeepAliveAdapter
  from airflow.exceptions import AirflowException
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 2 for calling the HttpAsyncHook obj's underlying member method code with example usage: obj._process_extra_options_from_connection(cls, conn, extra_options) and returns: extra