Why my API request with httpx not working?
I tested my request to API with postman.co.
Python httpx log all request headers
How can I log all request headers of an httpx request? I use log level DEBUG nad response headers log fine but there are no request headers in the log. If it matters I’m using async api of httpx lib.
How to reuse a httpx.AsyncClient between functions?
I have a httpx.AsyncClient
that I need to use across a lot of different functions. I understood that it’s good to reuse these objects. But I’m running into a problem with reusing it that only occurs in my tests. And of course, because it occurs only in testing, I’m worried I’m missing something big that’ll explode my prod code.