ClientRawResponse Class

Wrapper for response object. This allows for additional data to be gathereded from the response, for example deserialized headers. It also allows the raw response object to be passed back to the user.

Inheritance
builtins.object
ClientRawResponse

Constructor

ClientRawResponse(output, response)

Parameters

output
Required

Deserialized response object. This is the type that would have been returned directly by the main operation without raw=True.

response
<xref:requests.Response>
Required

Raw response object (by default requests.Response instance)

Methods

add_headers

Deserialize a specific header.

add_headers

Deserialize a specific header.

add_headers(header_dict)

Parameters

header_dict
dict
Required

A dictionary containing the name of the header and the type to deserialize to.