scopesim.server.download_utils.send_get#
- scopesim.server.download_utils.send_get(client: Client, sub_url: str, stream: bool = False, params: dict | None = None) Response#
Send a GET request (streamed or not) using an existing client.
The point of this function is mostly elaborate exception handling.
- Parameters:
- Raises:
ServerError – Raised if any error occurs during the process.
- Returns:
response – Server response.
- Return type:
httpx.Response