I'm using aiohttp and want to log the raw request in ClientSession before it's sent. I saw that for requests module, it is doable: Python requests - print entire http request (raw)?
But when I tried finding for aiohttp, I can only find for request headers, but what I want is the body: Dumping the request headers with aiohttp
I have looked into the source code for tracing but all I can find is the ClientResponse class being used and no instances of ClientRequest class being used: https://github.com/aio-libs/aiohttp/blob/master/aiohttp/tracing.py