compass.utilities.event_log.http_exchange#
- http_exchange(response, body)[source]#
Describe an HTTP exchange for the event log
- Parameters:
response (
aiohttp.ClientResponse) – Response received, as passed to ELM’son_response_hook.body (
bytes) – Content of the response.
- Returns:
dict– Therequest(method, URL, headers) and theresponse(status, final URL, headers, redirect history, and the body’s size, hash, and opening text), with credentials redacted.