]> git.ipfire.org Git - thirdparty/httpx.git/commit
Transport API (#963)
authorYeray Diaz Diaz <yeraydiazdiaz@gmail.com>
Thu, 21 May 2020 11:22:17 +0000 (12:22 +0100)
committerGitHub <noreply@github.com>
Thu, 21 May 2020 11:22:17 +0000 (12:22 +0100)
commitd2816c9c48b6ea77c9644ea9229b3b212feed737
treef92958fca083da8b7f0dc48fdf750da5f5057adc
parentba073c8a4635dfe2f0b49280d1650a469cde3050
Transport API (#963)

* Deprecate Client arg 'dispatch' and use 'transport'

* Remove line in test from coverage

* Document custom transports

* _dispatch > _transports

Also rename *Dispatch classes to *Transport and added aliases

* Fix linting issues

* Missed one _transports import

* Promote URLLib3Transport to public API

* Remove duplicate arg doc

* Assert that urllib3 is imported to use URLLib3Transport

* `AsyncClient`, not asynchronous `Client`

* Add warning category to warn calls

* Update docs/advanced.md

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Add warn_deprecated utility function

* Amend docs references to dispatch

* Add concrete implementation example

* Clearer transport implementation description

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
12 files changed:
docs/advanced.md
docs/async.md
httpx/__init__.py
httpx/_client.py
httpx/_models.py
httpx/_transports/__init__.py [moved from httpx/_dispatch/__init__.py with 100% similarity]
httpx/_transports/asgi.py [moved from httpx/_dispatch/asgi.py with 86% similarity]
httpx/_transports/urllib3.py [moved from httpx/_dispatch/urllib3.py with 84% similarity]
httpx/_transports/wsgi.py [moved from httpx/_dispatch/wsgi.py with 87% similarity]
httpx/_utils.py
tests/client/test_auth.py
tests/client/test_proxies.py