utils

module utils

Global Variables

  • REQUEST_ID_HEADER


function get_response_info

get_response_info(response: Response | None) → Dict[str, Any]

Utility to retrieve information of the client response.

Try to get the body, if not just get the text.

Args:

  • response (Response): a response from the API

Returns:

  • dict: information about the returned response

Last updated