class_docstr: Configuration for an external HTTP endpoint.
class_docstr_tok: ["Configuration","for","an","external","HTTP","endpoint","."]
docstr: Creates an `EndpointConfig` instance.
docstr_tok: ["Creates","an","`","EndpointConfig","`","instance","."]
code: def __init__(
      self,
      url: Optional[Text] = None,
      params: Optional[Dict[Text, Any]] = None,
      headers: Optional[Dict[Text, Any]] = None,
      basic_auth: Optional[Dict[Text, Text]] = None,
      token: Optional[Text] = None,
      token_name: Text = "token",
      cafile: Optional[Text] = None,
      **kwargs: Any,
  ) -> None:
      """Creates an `EndpointConfig` instance."""
      self.url = url
      self.params = params or {}
      self.headers = headers or {}
      self.basic_auth = basic_auth or {}
      self.token = token
      self.token_name = token_name
      self.type = kwargs.pop("store_type", kwargs.pop("type", None))
      self.cafile = cafile
      self.kwargs = kwargs
  
imports: import ssl
  from functools import cached_property
  import aiohttp
  import logging
  import os
  from aiohttp.client_exceptions import ContentTypeError
  from sanic.request import Request
  from typing import Any, Optional, Text, Dict
  from rasa.shared.exceptions import FileNotFoundException
  import rasa.shared.utils.io
  import rasa.utils.io
  from rasa.core.constants import DEFAULT_REQUEST_TIMEOUT
label_desc: Use image node_id 1 to create a new EndpointConfig object  with example: obj = EndpointConfig(url, params, headers, basic_auth, token, token_name, cafile)