The zaqar.common.api.response module

class Response(request, body, headers=None)

Bases: object

Common response class for Zaqar.

All zaqar.transport.base.Transport implementations will return this to the higher level API which will then build an object out of it.

Parameters:
  • request (zaqar.transport.request.Request) – The request sent to the server.
  • body (six.string_types) – Response’s body
  • headers (dict) – Optional headers returned in the response.
get_response()