Responses
spnkr.responses
Wrappers for API responses.
ImageResponse(response)
dataclass
JsonResponse(response, _parser)
dataclass
Bases: _BaseResponse
, Generic[T]
ClientResponse
wrapper for a JSON HTTP response.
json(**kwargs)
async
Read the response body as JSON.
Keyword arguments are passed to aiohttp.ClientResponse.json.
parse(**kwargs)
async
Parse the response data into the appropriate response model.
Keyword arguments are passed to aiohttp.ClientResponse.json.
_BaseResponse(response)
dataclass
from_cache
property
Whether the response is from cache or not.
read()
async
Read the response content.