Response

ServiceNow API operations performed by aiosnow returns an instance of Response.

API

class aiosnow.request.response.Response(*args, **kwargs)[source]

Aiosnow Response class

The Response object holds information about the ServiceNow HTTP response.

Subclass of aiohttp.ClientResponse, its base reference documentation can be found here: https://docs.aiohttp.org/en/latest/client_reference.html#aiohttp.ClientResponse

- data

Deserialized (ContentSchema) response content

- status

HTTP status code of response (int), e.g. 200

- reason

HTTP status reason of response (str), e.g. “OK”

- url

Request URL

load_document() → None[source]

Deserialize and set response content

Raises:RequestError – If there was an error in the request-response content