scopesim.server.download_utils.create_client

Contents

scopesim.server.download_utils.create_client#

scopesim.server.download_utils.create_client(base_url: str, cached: bool = False, cache_name: str = '') Client#

Create httpx Client instance, should support cache at some point.

Parameters:
  • base_url (str) – Server base URL.

  • cached (bool, optional) – Not yet implemented. The default is False.

  • cache_name (str, optional) – Not yet implemented. The default is “”.

Returns:

client – Client instance.

Return type:

httpx.Client