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’s on_response_hook.

  • body (bytes) – Content of the response.

Returns:

dict – The request (method, URL, headers) and the response (status, final URL, headers, redirect history, and the body’s size, hash, and opening text), with credentials redacted.