Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #829
0.12.0 (March 5th, 2020)
The 0.12 release tightens up the API expectations for
httpx
by switching to private module names to enforce better clarity around public API.All imports of
httpx
should import from the top-level package only, such asfrom httpx import Request
, rather than importing from privately namespaced modules such asfrom httpx._models import Request
.Added
.requires_response_body
. (Pull Add Auth.requires_response_body attribute #803)NetworkError
exception. (Pull Adding NetworkError to __init__.py #814)NO_PROXY
environment variable. (Pull Enable NO_PROXY environment variable support #835)Changed
RedirectLoop
exception, instead usingTooManyRedirects
. (Pull Drop RedirectLoop exception #819)backend=...
parameter onAsyncClient
, in favour of always autodetectingtrio
/asyncio
. (Pull Drop backend parameter on AsyncClient #791)Fixed
httpx.Proxy(url, mode="FORWARD_ONLY")
configuration. (Pull Fixhttpx.Proxy(..., mode="FORWARD_ONLY")
configuration. #788)utf-8
if no encoding is specified yet. #820)cert
parameters even ifverify=False
. (Pull Forwardcert
param to SSLConf ifverify=False
#796)data=...
. (Pull Don't support broken dict-of-dicts case for data argument. #811)