]> git.ipfire.org Git - thirdparty/httpx.git/commit
response.elapsed now reflects entire request/response time. (#692)
authorTom Christie <tom@tomchristie.com>
Sun, 29 Dec 2019 16:56:18 +0000 (16:56 +0000)
committerGitHub <noreply@github.com>
Sun, 29 Dec 2019 16:56:18 +0000 (16:56 +0000)
commit6a1ee0eb97a373ff6d9ff3413f417b675914e489
tree70d8843b8d66e23d81151c9ef857b226a66acafc
parent1f9d0154df4821587d6e008fe54df54d3c02c51b
response.elapsed now reflects entire request/response time. (#692)

* Changed behaviour of elapsed on response

* Fixed api docs for Response elapsed

* Minor tweaks to 'request.elapsed'

* Response instantiated with content should have elapsed==0

* Fix elapsed time on immediately closed responses.
docs/api.md
httpx/client.py
httpx/models.py
tests/models/test_responses.py