Skip to content

Extensions reason_phrase and http_version as bytes - #1526

Merged
lovelydinosaur merged 2 commits into
transport-apifrom
tweak-reason-and-version-extensions
Mar 23, 2021
Merged

Extensions reason_phrase and http_version as bytes#1526
lovelydinosaur merged 2 commits into
transport-apifrom
tweak-reason-and-version-extensions

Conversation

@lovelydinosaur

Copy link
Copy Markdown
Contributor

The Transport API extensions reason_phrase and http_version are now mandated as being bytes.

@lovelydinosaur
lovelydinosaur merged commit 4b4769a into transport-apiMar 23, 2021
@lovelydinosaur
lovelydinosaur deleted the tweak-reason-and-version-extensions branch March 23, 2021 11:41
lovelydinosaur added a commit that referenced this pull request Mar 24, 2021
* 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>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@lovelydinosaur