]> git.ipfire.org Git - thirdparty/httpx.git/commit
Transport API as plain `request -> response` method. (#1840)
authorTom Christie <tom@tomchristie.com>
Mon, 13 Sep 2021 12:34:46 +0000 (13:34 +0100)
committerGitHub <noreply@github.com>
Mon, 13 Sep 2021 12:34:46 +0000 (13:34 +0100)
commitff9813e84dab56f0f3c4ef3a159a4cce8c644a91
tree57319c8836591f3698b52378ff81a20ddd4fe646
parent47266d763bdef9dc99f9c9d09d49d441b87802e6
Transport API as plain `request -> response` method. (#1840)

* Responses as context managers

* timeout -> request.extensions

* Transport API -> request/response signature

* Fix top-level httpx.stream()

* Drop response context manager methods

* Simplify ASGI tests

* Black formatting
14 files changed:
httpx/__init__.py
httpx/_client.py
httpx/_content.py
httpx/_models.py
httpx/_multipart.py
httpx/_transports/asgi.py
httpx/_transports/base.py
httpx/_transports/default.py
httpx/_transports/mock.py
httpx/_transports/wsgi.py
httpx/_types.py
tests/client/test_auth.py
tests/client/test_redirects.py
tests/test_asgi.py