You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing requests' elapsed property on Response object. #338
The requests Response object has an elapsed property which returns a datetime.timedelta instance. This appears to be missing from the httpx Response.
A nice to have feature would be to break elapsed into more fine-grained timings similar to Firefox's web inspector (Blocked, DNS resolution, Connecting, TLS setup, Sending, Waiting and Receiving).
Yup, I remember I had identified this discrepency in #298 already. I think it's a nice thing to have & one step further towards Requests compatibility. :)
A nice to have feature would be to break elapsed into more fine-grained timings similar to Firefox's web inspector
It's a neat idea — though probably out of scope of the core package? We're working on providing an extension mechanism to the client though, and I think this could very well be a third-party tracing middleware of some kind.
Activity
florimondmanca commentedon Sep 12, 2019
Yup, I remember I had identified this discrepency in #298 already. I think it's a nice thing to have & one step further towards Requests compatibility. :)
It's a neat idea — though probably out of scope of the core package? We're working on providing an extension mechanism to the client though, and I think this could very well be a third-party tracing middleware of some kind.
rowillia commentedon Sep 17, 2019
I can take a crack at this! This project looks super interesting and looking to get started.
Add `.elapsed` onto Response objects tracking how long a request took.