httpx v0.12.0 Release Notes
Release Date: 2020-03-05 // about 4 years ago-
๐ 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
- Support making response body available to auth classes with
.requires_response_body
. (Pull #803) - ๐ท Export
NetworkError
exception. (Pull #814) - โ Add support for
NO_PROXY
environment variable. (Pull #835)
๐ Changed
- Switched to private module names. (Pull #785)
- โฌ๏ธ Drop redirect looping detection and the
RedirectLoop
exception, instead usingTooManyRedirects
. (Pull #819) - โฌ๏ธ Drop
backend=...
parameter onAsyncClient
, in favour of always autodetectingtrio
/asyncio
. (Pull #791)
๐ Fixed
- ๐ Support basic auth credentials in proxy URLs. (Pull #780)
- ๐ Fix
httpx.Proxy(url, mode="FORWARD_ONLY")
configuration. (Pull #788) - Fallback to setting headers as UTF-8 if no encoding is specified. (Pull #820)
- Close proxy dispatches classes on client close. (Pull #826)
- ๐ Support custom
cert
parameters even ifverify=False
. (Pull #796) - ๐ Don't support invalid dict-of-dicts form data in
data=...
. (Pull #811)
- Support making response body available to auth classes with