RequestResult

class faunadb.request_result.RequestResult(method, path, query, request_content, response_raw, response_content, status_code, response_headers, start_time, end_time)

Stores information about a single request and response.

__init__(method, path, query, request_content, response_raw, response_content, status_code, response_headers, start_time, end_time)
end_time = None

Time the response was received.

method = None

“GET” or “POST”.

path = None

Path that was queried. Relative to client’s domain.

query = None

URL query. None unless method == GET. Not related to FaunaClient.query.

request_content = None

Request data.

response_content = None

Parsed value returned by the server. Includes “resource” wrapper dict, or may be an “errors” dict instead. In the case of a JSON parse error, this will be None.

response_headers = None

A dictionary of headers with case-insensitive keys.

response_raw = None

String value returned by the server.

start_time = None

Time the request started.

status_code = None

HTTP status code.

time_taken

end_time - start_time