Skip to content

Missing requests' elapsed property on Response object.  #338

Closed

Description

@jaredcm

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).

Activity

  1. florimondmanca commented on Sep 12, 2019

    @florimondmanca
    Contributor

    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.

  2. rowillia commented on Sep 17, 2019

    @rowillia
    Contributor

    I can take a crack at this! This project looks super interesting and looking to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersrequests-compatIssues related to Requests backwards compatibility

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions