httpx/tests/models
Tom Christie 1a6e254f72
Transport API (#1522)
* Added httpx.BaseTransport and httpx.AsyncBaseTransport

* Test coverage and default transports to calling .close on __exit__

* BaseTransport documentation

* Use 'handle_request' for the transport API.

* Docs tweaks

* Docs tweaks

* Minor docstring tweak

* Transport API docs

* Drop 'Optional' on Transport API

* Docs tweaks

* Tweak CHANGELOG

* Drop erronous example.py

* Push httpcore exception wrapping out of client into transport (#1524)

* Push httpcore exception wrapping out of client into transport

* Include close/aclose extensions in docstring

* Comment about the request property on RequestError exceptions

* Extensions reason_phrase and http_version as bytes (#1526)

* Extensions reason_phrase and http_version as bytes

* Update BaseTransport docstring

* Neaten up our try...except structure for ensuring responses (#1525)

* Fix CHANGELOG typo

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>

* Fix CHANGELOG typo

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>

* stream: Iterator[bytes] -> stream: Iterable[bytes]

* Use proper bytestream interfaces when calling into httpcore

* Grungy typing workaround due to httpcore using Iterator instead of Iterable in bytestream types

* Update docs/advanced.md

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>

* Consistent typing imports across tranports

* Update docs/advanced.md

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2021-03-24 12:36:34 +00:00
..
__init__.py Tweak test naming 2019-05-17 13:49:24 +01:00
test_cookies.py Add repr to Cookies for displaying available cookies (#1411) 2020-12-03 22:06:42 +01:00
test_headers.py Support header comparisons with dict or list. (#1326) 2020-09-25 12:28:34 +01:00
test_queryparams.py Allow tuple as input of query parameters. (#1426) 2020-12-12 18:38:37 +01:00
test_requests.py Support header comparisons with dict or list. (#1326) 2020-09-25 12:28:34 +01:00
test_responses.py Transport API (#1522) 2021-03-24 12:36:34 +00:00
test_url.py Fix some cases of merging with base_url (#1532) 2021-03-24 10:51:33 +00:00