]> git.ipfire.org Git - thirdparty/httpx.git/commit
Add `HTTPTransport` and `AsyncHTTPTransport` (#1399)
authorTom Christie <tom@tomchristie.com>
Fri, 8 Jan 2021 10:23:56 +0000 (10:23 +0000)
committerGitHub <noreply@github.com>
Fri, 8 Jan 2021 10:23:56 +0000 (10:23 +0000)
commit89fb0cbc69ea07b123dd7b36dc1ed9151c5d398f
treea71a12ce913a0e9c2fe8d5e68698729400dcb943
parent181639322e2f68c00393435ef9e2359ff2691331
Add `HTTPTransport` and `AsyncHTTPTransport` (#1399)

* Add keepalive_expiry to Limits config

* keepalive_expiry should be optional. In line with httpcore.

* HTTPTransport and AsyncHTTPTransport

* Update docs for httpx.HTTPTransport()

* Update type hints

* Fix docs typo

* Additional mount example

* Tweak context manager methods

* Add 'httpx.HTTPTransport(proxy=...)'

* Use explicit keyword arguments throughout httpx.HTTPTransport

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
docs/advanced.md
docs/async.md
httpx/__init__.py
httpx/_client.py
httpx/_transports/default.py [new file with mode: 0644]
tests/client/test_proxies.py