]> git.ipfire.org Git - thirdparty/httpx.git/commit
Add `.elapsed` onto Response objects tracking how long a request took. (#351)
authorRoy Williams <roy.williams.iii@gmail.com>
Wed, 18 Sep 2019 18:29:01 +0000 (14:29 -0400)
committerFlorimond Manca <florimond.manca@gmail.com>
Wed, 18 Sep 2019 18:29:01 +0000 (20:29 +0200)
commit05ac1176791b5bd4b76cc82a2c23a89b9fed5dbf
tree0c597e00dd54a67e6f0415ffb5bdaf634b559fd8
parent8155352d2028b7f74ccd53acdf5a8d74b84e6d15
Add `.elapsed` onto Response objects tracking how long a request took. (#351)

* Add `.elapsed` onto Response objects tracking how long a request took.

* Move elapsed timing from send methods into _get_response

* Address feedback

* Update tests/test_api.py

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
docs/api.md
httpx/client.py
httpx/models.py
httpx/utils.py
tests/client/test_async_client.py
tests/client/test_client.py
tests/conftest.py
tests/models/test_responses.py
tests/test_utils.py