CHANGELOG.md
This file
Path
CHANGELOG.md
676 lines · 30.9 KiB · Markdown
Last changed by
Version 0.15.4 (#1327)Tom Christiebefore adoptiona7a76fb
History of this fileTake it
The walk stopped after 200 commits: lines older than 99a5c78 point at it.
Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 1–6why, one step back1# Changelog23All notable changes to this project will be documented in this file.45The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).6Version 0.15.4 (#1327)Tom Christiebefore adoptiona7a76fb
lines 7–16why, one step back7## 0.15.4 (September 25th, 2020)89### Added1011* Support direct comparisons between `Headers` and dicts or lists of two-tuples. Eg. `assert response.headers == {"Content-Length": 24}` (Pull #1326)1213### Fixed1415* Fix automatic `.read()` when `Response` instances are created with `content=<str>` (Pull #1324)16Release 0.15.3 (#1318)Florimond Mancabefore adoption24da8d4
lines 17–22why, one step back17## 0.15.3 (September 24th, 2020)1819### Fixed2021* Fixed connection leak in async client due to improper closing of response streams. (Pull #1316)22Version 0.15.2 (#1314)Tom Christiebefore adoption8ceb34f
lines 23–29why, one step back23## 0.15.2 (September 23nd, 2020)2425### Fixed2627* Fixed `response.elapsed` property. (Pull #1313)28* Fixed client authentication interaction with `.stream()`. (Pull #1312)29Version 0.15.1 (#1308)Tom Christiebefore adoption27e67b3
lines 30–35why, one step back30## 0.15.1 (September 23nd, 2020)3132### Fixed3334* ASGITransport now properly applies URL decoding to the `path` component, as-per the ASGI spec. (Pull #1307)35Include 0.15.0 release date. (#1305)Tom Christiebefore adoptiona63b038
line 36why, one step back36## 0.15.0 (September 22nd, 2020)Version 0.15.0 (#1301)Tom Christiebefore adoptionf932af9
lines 37–39why, one step back3738### Added39Include curio support in CHANGELOG (#1304)Tom Christiebefore adoption5d11756
line 40why, one step back40* Added support for curio. (Pull https://github.com/encode/httpcore/pull/168)Version 0.15.0 (#1301)Tom Christiebefore adoptionf932af9
lines 41–78why, one step back41* Added support for event hooks. (Pull #1246)42* Added support for authentication flows which require either sync or async I/O. (Pull #1217)43* Added support for monitoring download progress with `response.num_bytes_downloaded`. (Pull #1268)44* Added `Request(content=...)` for byte content, instead of overloading `Request(data=...)` (Pull #1266)45* Added support for all URL components as parameter names when using `url.copy_with(...)`. (Pull #1285)46* Neater split between automatically populated headers on `Request` instances, vs default `client.headers`. (Pull #1248)47* Unclosed `AsyncClient` instances will now raise warnings if garbage collected. (Pull #1197)48* Support `Response(content=..., text=..., html=..., json=...)` for creating usable response instances in code. (Pull #1265, #1297)49* Support instantiating requests from the low-level transport API. (Pull #1293)50* Raise errors on invalid URL types. (Pull #1259)5152### Changed5354* Cleaned up expected behaviour for URL escaping. `url.path` is now URL escaped. (Pull #1285)55* Cleaned up expected behaviour for bytes vs str in URL components. `url.userinfo` and `url.query` are not URL escaped, and so return bytes. (Pull #1285)56* Drop `url.authority` property in favour of `url.netloc`, since "authority" was semantically incorrect. (Pull #1285)57* Drop `url.full_path` property in favour of `url.raw_path`, for better consistency with other parts of the API. (Pull #1285)58* No longer use the `chardet` library for auto-detecting charsets, instead defaulting to a simpler approach when no charset is specified. (#1269)5960### Fixed6162* Swapped ordering of redirects and authentication flow. (Pull #1267)63* `.netrc` lookups should use host, not host+port. (Pull #1298)6465### Removed6667* The `URLLib3Transport` class no longer exists. We've published it instead as an example of [a custom transport class](https://gist.github.com/florimondmanca/d56764d78d748eb9f73165da388e546e). (Pull #1182)68* Drop `request.timer` attribute, which was being used internally to set `response.elapsed`. (Pull #1249)69* Drop `response.decoder` attribute, which was being used internally. (Pull #1276)70* `Request.prepare()` is now a private method. (Pull #1284)71* The `Headers.getlist()` method had previously been deprecated in favour of `Headers.get_list()`. It is now fully removed.72* The `QueryParams.getlist()` method had previously been deprecated in favour of `QueryParams.get_list()`. It is now fully removed.73* The `URL.is_ssl` property had previously been deprecated in favour of `URL.scheme == "https"`. It is now fully removed.74* The `httpx.PoolLimits` class had previously been deprecated in favour of `httpx.Limits`. It is now fully removed.75* The `max_keepalive` setting had previously been deprecated in favour of the more explicit `max_keepalive_connections`. It is now fully removed.76* The verbose `httpx.Timeout(5.0, connect_timeout=60.0)` style had previously been deprecated in favour of `httpx.Timeout(5.0, connect=60.0)`. It is now fully removed.77* Support for instantiating a timeout config missing some defaults, such as `httpx.Timeout(connect=60.0)`, had previously been deprecated in favour of enforcing a more explicit style, such as `httpx.Timeout(5.0, connect=60.0)`. This is now strictly enforced.78Version 0.14.3 (#1247)Tom Christiebefore adoptionec06ba2
lines 79–90why, one step back79## 0.14.3 (September 2nd, 2020)8081### Added8283* `http.Response()` may now be instantiated without a `request=...` parameter. Useful for some unit testing cases. (Pull #1238)84* Add `103 Early Hints` and `425 Too Early` status codes. (Pull #1244)8586### Fixed8788* `DigestAuth` now handles responses that include multiple 'WWW-Authenticate' headers. (Pull #1240)89* Call into transport `__enter__`/`__exit__` or `__aenter__`/`__aexit__` when client is used in a context manager style. (Pull #1218)90Version 0.14.2 (#1207)Tom Christiebefore adoption4161d7a
lines 91–109why, one step back91## 0.14.2 (August 24th, 2020)9293### Added9495* Support `client.get(..., auth=None)` to bypass the default authentication on a clients. (Pull #1115)96* Support `client.auth = ...` property setter. (Pull #1185)97* Support `httpx.get(..., proxies=...)` on top-level request functions. (Pull #1198)98* Display instances with nicer import styles. (Eg. <httpx.ReadTimeout ...>) (Pull #1155)99* Support `cookies=[(key, value)]` list-of-two-tuples style usage. (Pull #1211)100101### Fixed102103* Ensure that automatically included headers on a request may be modified. (Pull #1205)104* Allow explicit `Content-Length` header on streaming requests. (Pull #1170)105* Handle URL quoted usernames and passwords properly. (Pull #1159)106* Use more consistent default for `HEAD` requests, setting `allow_redirects=True`. (Pull #1183)107* If a transport error occurs while streaming the response, raise an `httpx` exception, not the underlying `httpcore` exception. (Pull #1190)108* Include the underlying `httpcore` traceback, when transport exceptions occur. (Pull #1199)109Version 0.14.1 (#1164)Tom Christiebefore adoptiondb4e417
lines 110–119why, one step back110## 0.14.1 (August 11th, 2020)111112### Added113114* The `httpx.URL(...)` class now raises `httpx.InvalidURL` on invalid URLs, rather than exposing the underlying `rfc3986` exception. If a redirect response includes an invalid 'Location' header, then a `RemoteProtocolError` exception is raised, which will be associated with the request that caused it. (Pull #1163)115116### Fixed117118* Handling multiple `Set-Cookie` headers became broken in the 0.14.0 release, and is now resolved. (Pull #1156)119Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 120–129why, one step back120## 0.14.0 (August 7th, 2020)121122The 0.14 release includes a range of improvements to the public API, intended on preparing for our upcoming 1.0 release.123124* Our HTTP/2 support is now fully optional. **You now need to use `pip install httpx[http2]` if you want to include the HTTP/2 dependancies.**125* Our HSTS support has now been removed. Rewriting URLs from `http` to `https` if the host is on the HSTS list can be beneficial in avoiding roundtrips to incorrectly formed URLs, but on balance we've decided to remove this feature, on the principle of least surprise. Most programmatic clients do not include HSTS support, and for now we're opting to remove our support for it.126* Our exception hierarchy has been overhauled. Most users will want to stick with their existing `httpx.HTTPError` usage, but we've got a clearer overall structure now. See https://www.python-httpx.org/exceptions/ for more details.127128When upgrading you should be aware of the following public API changes. Note that deprecated usages will currently continue to function, but will issue warnings.129Fix typo in 0.14.0 changelog (#1148)Riccardo Magliocchettibefore adoptionb9db5e1
line 130why, one step back130* You should now use `httpx.codes` consistently instead of `httpx.StatusCodes`.Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 131–164why, one step back131* Usage of `httpx.Timeout()` should now always include an explicit default. Eg. `httpx.Timeout(None, pool=5.0)`.132* When using `httpx.Timeout()`, we now have more concisely named keyword arguments. Eg. `read=5.0`, instead of `read_timeout=5.0`.133* Use `httpx.Limits()` instead of `httpx.PoolLimits()`, and `limits=...` instead of `pool_limits=...`.134* The `httpx.Limits(max_keepalive=...)` argument is now deprecated in favour of a more explicit `httpx.Limits(max_keepalive_connections=...)`.135* Keys used with `Client(proxies={...})` should now be in the style of `{"http://": ...}`, rather than `{"http": ...}`.136* The multidict methods `Headers.getlist()` and `QueryParams.getlist()` are deprecated in favour of more consistent `.get_list()` variants.137* The `URL.is_ssl` property is deprecated in favour of `URL.scheme == "https"`.138* The `URL.join(relative_url=...)` method is now `URL.join(url=...)`. This change does not support warnings for the deprecated usage style.139140One notable aspect of the 0.14.0 release is that it tightens up the public API for `httpx`, by ensuring that several internal attributes and methods have now become strictly private.141142The following previously had nominally public names on the client, but were all undocumented and intended solely for internal usage. They are all now replaced with underscored names, and should not be relied on or accessed.143144These changes should not affect users who have been working from the `httpx` documentation.145146* `.merge_url()`, `.merge_headers()`, `.merge_cookies()`, `.merge_queryparams()`147* `.build_auth()`, `.build_redirect_request()`148* `.redirect_method()`, `.redirect_url()`, `.redirect_headers()`, `.redirect_stream()`149* `.send_handling_redirects()`, `.send_handling_auth()`, `.send_single_request()`150* `.init_transport()`, `.init_proxy_transport()`151* `.proxies`, `.transport`, `.netrc`, `.get_proxy_map()`152153See pull requests #997, #1065, #1071.154155Some areas of API which were already on the deprecation path, and were raising warnings or errors in 0.13.x have now been escalated to being fully removed.156157* Drop `ASGIDispatch`, `WSGIDispatch`, which have been replaced by `ASGITransport`, `WSGITransport`.158* Drop `dispatch=...`` on client, which has been replaced by `transport=...``159* Drop `soft_limit`, `hard_limit`, which have been replaced by `max_keepalive` and `max_connections`.160* Drop `Response.stream` and` `Response.raw`, which have been replaced by ``.aiter_bytes` and `.aiter_raw`.161* Drop `proxies=<transport instance>` in favor of `proxies=httpx.Proxy(...)`.162163See pull requests #1057, #1058.164Minor formatting tweak to CHANGELOG (#1142)Tom Christiebefore adoptiona25d924
line 165why, one step back165### AddedVersion 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 166–199why, one step back166167* Added dedicated exception class `httpx.HTTPStatusError` for `.raise_for_status()` exceptions. (Pull #1072)168* Added `httpx.create_ssl_context()` helper function. (Pull #996)169* Support for proxy exlcusions like `proxies={"https://www.example.com": None}`. (Pull #1099)170* Support `QueryParams(None)` and `client.params = None`. (Pull #1060)171172### Changed173174* Use `httpx.codes` consistently in favour of `httpx.StatusCodes` which is placed into deprecation. (Pull #1088)175* Usage of `httpx.Timeout()` should now always include an explicit default. Eg. `httpx.Timeout(None, pool=5.0)`. (Pull #1085)176* Switch to more concise `httpx.Timeout()` keyword arguments. Eg. `read=5.0`, instead of `read_timeout=5.0`. (Pull #1111)177* Use `httpx.Limits()` instead of `httpx.PoolLimits()`, and `limits=...` instead of `pool_limits=...`. (Pull #1113)178* Keys used with `Client(proxies={...})` should now be in the style of `{"http://": ...}`, rather than `{"http": ...}`. (Pull #1127)179* The multidict methods `Headers.getlist` and `QueryParams.getlist` are deprecated in favour of more consistent `.get_list()` variants. (Pull #1089)180* `URL.port` becomes `Optional[int]`. Now only returns a port if one is explicitly included in the URL string. (Pull #1080)181* The `URL(..., allow_relative=[bool])` parameter no longer exists. All URL instances may be relative. (Pull #1073)182* Drop unnecessary `url.full_path = ...` property setter. (Pull #1069)183* The `URL.join(relative_url=...)` method is now `URL.join(url=...)`. (Pull #1129)184* The `URL.is_ssl` property is deprecated in favour of `URL.scheme == "https"`. (Pull #1128)185186### Fixed187188* Add missing `Response.next()` method. (Pull #1055)189* Ensure all exception classes are exposed as public API. (Pull #1045)190* Support multiple items with an identical field name in multipart encodings. (Pull #777)191* Skip HSTS preloading on single-label domains. (Pull #1074)192* Fixes for `Response.iter_lines()`. (Pull #1033, #1075)193* Ignore permission errors when accessing `.netrc` files. (Pull #1104)194* Allow bare hostnames in `HTTP_PROXY` etc... environment variables. (Pull #1120)195* Settings `app=...` or `transport=...` bypasses any environment based proxy defaults. (Pull #1122)196* Fix handling of `.base_url` when a path component is included in the base URL. (Pull #1130)197198---199Version 0.13.3 (#1006)Tom Christiebefore adoption56d8800
lines 200–206why, one step back200## 0.13.3 (May 29th, 2020)201202### Fixed203204* Include missing keepalive expiry configuration. (Pull #1005)205* Improved error message when URL redirect has a custom scheme. (Pull #1002)206Version 0.13.2 (#1001)Tom Christiebefore adoptionf5e1aa5
lines 207–214why, one step back207## 0.13.2 (May 27th, 2020)208209### Fixed210211* Include explicit "Content-Length: 0" on POST, PUT, PATCH if no request body is used. (Pull #995)212* Add `http2` option to `httpx.Client`. (Pull #982)213* Tighten up API typing in places. (Pull #992, #999)214Version 0.13.1 (#981)Tom Christiebefore adoptionebc9c29
lines 215–221why, one step back215## 0.13.1 (May 22nd, 2020)216217### Fixed218219* Fix pool options deprecation warning. (Pull #980)220* Include `httpx.URLLib3ProxyTransport` in top-level API. (Pull #979)221Version 0.13 (#971)Tom Christiebefore adoption2c2c6a7
lines 222–260why, one step back222## 0.13.0 (May 22nd, 2020)223224This release switches to `httpcore` for all the internal networking, which means:225226* We're using the same codebase for both our sync and async clients.227* HTTP/2 support is now available with the sync client.228* We no longer have a `urllib3` dependency for our sync client, although there is still an *optional* `URLLib3Transport` class.229230It also means we've had to remove our UDS support, since maintaining that would have meant having to push back our work towards a 1.0 release, which isn't a trade-off we wanted to make.231232We also now have [a public "Transport API"](https://www.python-httpx.org/advanced/#custom-transports), which you can use to implement custom transport implementations against. This formalises and replaces our previously private "Dispatch API".233234### Changed235236* Use `httpcore` for underlying HTTP transport. Drop `urllib3` requirement. (Pull #804, #967)237* Rename pool limit options from `soft_limit`/`hard_limit` to `max_keepalive`/`max_connections`. (Pull #968)238* The previous private "Dispatch API" has now been promoted to a public "Transport API". When customizing the transport use `transport=...`. The `ASGIDispatch` and `WSGIDispatch` class naming is deprecated in favour of `ASGITransport` and `WSGITransport`. (Pull #963)239240### Added241242* Added `URLLib3Transport` class for optional `urllib3` transport support. (Pull #804, #963)243* Streaming multipart uploads. (Pull #857)244* Logging via HTTPCORE_LOG_LEVEL and HTTPX_LOG_LEVEL environment variables245and TRACE level logging. (Pull encode/httpcore#79)246247### Fixed248249* Performance improvement in brotli decoder. (Pull #906)250* Proper warning level of deprecation notice in `Response.stream` and `Response.raw`. (Pull #908)251* Fix support for generator based WSGI apps. (Pull #887)252* Reuse of connections on HTTP/2 in close concurrency situations. (Pull encode/httpcore#81)253* Honor HTTP/2 max concurrent streams settings (Pull encode/httpcore#89, encode/httpcore#90)254* Fix bytes support in multipart uploads. (Pull #974)255* Improve typing support for `files=...`. (Pull #976)256257### Removed258259* Dropped support for `Client(uds=...)` (Pull #804)260Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 261–266why, one step back261## 0.13.0.dev2 (May 12th, 2020)262263The 0.13.0.dev2 is a *pre-release* version. To install it, use `pip install httpx --pre`.264265### Added266Version 0.13 (#971)Tom Christiebefore adoption2c2c6a7
line 267why, one step back267* Logging via HTTPCORE_LOG_LEVEL and HTTPX_LOG_LEVEL environment variablesUpdate dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 268–271why, one step back268and TRACE level logging. (HTTPCore Pull #79)269270### Fixed271Version 0.13 (#971)Tom Christiebefore adoption2c2c6a7
lines 272–273why, one step back272* Reuse of connections on HTTP/2 in close concurrency situations. (HTTPCore Pull #81)273* When using an `app=<ASGI app>` observe neater disconnect behaviour instead of sending empty body messages. (Pull #919)Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 274–280why, one step back274275## 0.13.0.dev1 (May 6th, 2020)276277The 0.13.0.dev1 is a *pre-release* version. To install it, use `pip install httpx --pre`.278279### Fixed280Version 0.13 (#971)Tom Christiebefore adoption2c2c6a7
lines 281–282why, one step back281* Passing `http2` flag to proxy dispatchers. (Pull #934)282* Use [`httpcore` v0.8.3](https://github.com/encode/httpcore/releases/tag/0.8.3)Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 283–315why, one step back283which addresses problems in handling of headers when using proxies.284285## 0.13.0.dev0 (April 30th, 2020)286287The 0.13.0.dev0 is a *pre-release* version. To install it, use `pip install httpx --pre`.288289This release switches to `httpcore` for all the internal networking, which means:290291* We're using the same codebase for both our sync and async clients.292* HTTP/2 support is now available with the sync client.293* We no longer have a `urllib3` dependency for our sync client, although there is still an *optional* `URLLib3Dispatcher` class.294295It also means we've had to remove our UDS support, since maintaining that would have meant having to push back our work towards a 1.0 release, which isn't a trade-off we wanted to make.296297### Changed298299* Use `httpcore` for underlying HTTP transport. Drop `urllib3` requirement. (Pull #804)300301### Added302303* Added `URLLib3Dispatcher` class for optional `urllib3` transport support. (Pull #804)304* Streaming multipart uploads. (Pull #857)305306### Fixed307308* Performance improvement in brotli decoder. (Pull #906)309* Proper warning level of deprecation notice in `Response.stream` and `Response.raw`. (Pull #908)310* Fix support for generator based WSGI apps. (Pull #887)311312### Removed313314* Dropped support for `Client(uds=...)` (Pull #804)315Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 316–317why, one step back316---317Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 318–350why, one step back318## 0.12.1 (March 19th, 2020)319320### Fixed321322* Resolved packaging issue, where additional files were being included.323324## 0.12.0 (March 9th, 2020)325326The 0.12 release tightens up the API expectations for `httpx` by switching to private module names to enforce better clarity around public API.327328All imports of `httpx` should import from the top-level package only, such as `from httpx import Request`, rather than importing from privately namespaced modules such as `from httpx._models import Request`.329330### Added331332* Support making response body available to auth classes with `.requires_response_body`. (Pull #803)333* Export `NetworkError` exception. (Pull #814)334* Add support for `NO_PROXY` environment variable. (Pull #835)335336### Changed337338* Switched to private module names. (Pull #785)339* Drop redirect looping detection and the `RedirectLoop` exception, instead using `TooManyRedirects`. (Pull #819)340* Drop `backend=...` parameter on `AsyncClient`, in favour of always autodetecting `trio`/`asyncio`. (Pull #791)341342### Fixed343344* Support basic auth credentials in proxy URLs. (Pull #780)345* Fix `httpx.Proxy(url, mode="FORWARD_ONLY")` configuration. (Pull #788)346* Fallback to setting headers as UTF-8 if no encoding is specified. (Pull #820)347* Close proxy dispatches classes on client close. (Pull #826)348* Support custom `cert` parameters even if `verify=False`. (Pull #796)349* Don't support invalid dict-of-dicts form data in `data=...`. (Pull #811)350Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 351–352why, one step back351---352Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 353–390why, one step back353## 0.11.1 (January 17th, 2020)354355### Fixed356357* Fixed usage of `proxies=...` on `Client()`. (Pull #763)358* Support both `zlib` and `deflate` style encodings on `Content-Encoding: deflate`. (Pull #758)359* Fix for streaming a redirect response body with `allow_redirects=False`. (Pull #766)360* Handle redirect with malformed Location headers missing host. (Pull #774)361362## 0.11.0 (January 9th, 2020)363364The 0.11 release reintroduces our sync support, so that `httpx` now supports both a standard thread-concurrency API, and an async API.365366Existing async `httpx` users that are upgrading to 0.11 should ensure that:367368* Async codebases should always use a client instance to make requests, instead of the top-level API.369* The async client is named as `httpx.AsyncClient()`, instead of `httpx.Client()`.370* When instantiating proxy configurations use the `httpx.Proxy()` class, instead of the previous `httpx.HTTPProxy()`. This new configuration class works for configuring both sync and async clients.371372We believe the API is now pretty much stable, and are aiming for a 1.0 release sometime on or before April 2020.373374### Changed375376- Top level API such as `httpx.get(url, ...)`, `httpx.post(url, ...)`, `httpx.request(method, url, ...)` becomes synchronous.377- Added `httpx.Client()` for synchronous clients, with `httpx.AsyncClient` being used for async clients.378- Switched to `proxies=httpx.Proxy(...)` for proxy configuration.379- Network connection errors are wrapped in `httpx.NetworkError`, rather than exposing lower-level exception types directly.380381### Removed382383- The `request.url.origin` property and `httpx.Origin` class are no longer available.384- The per-request `cert`, `verify`, and `trust_env` arguments are escalated from raising errors if used, to no longer being available. These arguments should be used on a per-client instance instead, or in the top-level API.385- The `stream` argument has escalated from raising an error when used, to no longer being available. Use the `client.stream(...)` or `httpx.stream()` streaming API instead.386387### Fixed388389- Redirect loop detection matches against `(method, url)` rather than `url`. (Pull #734)390Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 391–392why, one step back391---392Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 393–425why, one step back393## 0.10.1 (December 31st, 2019)394395### Fixed396397- Fix issue with concurrent connection acquiry. (Pull #700)398- Fix write error on closing HTTP/2 connections. (Pull #699)399400## 0.10.0 (December 29th, 2019)401402The 0.10.0 release makes some changes that will allow us to support both sync and async interfaces.403404In particular with streaming responses the `response.read()` method becomes `response.aread()`, and the `response.close()` method becomes `response.aclose()`.405406If following redirects explicitly the `response.next()` method becomes `response.anext()`.407408### Fixed409410- End HTTP/2 streams immediately on no-body requests, rather than sending an empty body message. (Pull #682)411- Improve typing for `Response.request`: switch from `Optional[Request]` to `Request`. (Pull #666)412- `Response.elapsed` now reflects the entire download time. (Pull #687, #692)413414### Changed415416- Added `AsyncClient` as a synonym for `Client`. (Pull #680)417- Switch to `response.aread()` for conditionally reading streaming responses. (Pull #674)418- Switch to `response.aclose()` and `client.aclose()` for explicit closing. (Pull #674, #675)419- Switch to `response.anext()` for resolving the next redirect response. (Pull #676)420421### Removed422423- When using a client instance, the per-request usage of `verify`, `cert`, and `trust_env` have now escalated from raising a warning to raising an error. You should set these arguments on the client instead. (Pull #617)424- Removed the undocumented `request.read()`, since end users should not require it.425Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 426–427why, one step back426---427Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 428–498why, one step back428## 0.9.5 (December 20th, 2019)429430### Fixed431432- Fix Host header and HSTS rewrites when an explicit `:80` port is included in URL. (Pull #649)433- Query Params on the URL string are merged with any `params=...` argument. (Pull #653)434- More robust behavior when closing connections. (Pull #640)435- More robust behavior when handling HTTP/2 headers with trailing whitespace. (Pull #637)436- Allow any explicit `Content-Type` header to take precedence over the encoding default. (Pull #633)437438## 0.9.4 (December 12th, 2019)439440### Fixed441442- Added expiry to Keep-Alive connections, resolving issues with acquiring connections. (Pull #627)443- Increased flow control windows on HTTP/2, resolving download speed issues. (Pull #629)444445## 0.9.3 (December 7th, 2019)446447### Fixed448449- Fixed HTTP/2 with autodetection backend. (Pull #614)450451## 0.9.2 (December 7th, 2019)452453* Released due to packaging build artifact.454455## 0.9.1 (December 6th, 2019)456457* Released due to packaging build artifact.458459## 0.9.0 (December 6th, 2019)460461The 0.9 releases brings some major new features, including:462463* A new streaming API.464* Autodetection of either asyncio or trio.465* Nicer timeout configuration.466* HTTP/2 support off by default, but can be enabled.467468We've also removed all private types from the top-level package export.469470In order to ensure you are only ever working with public API you should make471sure to only import the top-level package eg. `import httpx`, rather than472importing modules within the package.473474### Added475476- Added concurrency backend autodetection. (Pull #585)477- Added `Client(backend='trio')` and `Client(backend='asyncio')` API. (Pull #585)478- Added `response.stream_lines()` API. (Pull #575)479- Added `response.is_error` API. (Pull #574)480- Added support for `timeout=Timeout(5.0, connect_timeout=60.0)` styles. (Pull #593)481482### Fixed483484- Requests or Clients with `timeout=None` now correctly always disable timeouts. (Pull #592)485- Request 'Authorization' headers now have priority over `.netrc` authentication info. (Commit 095b691)486- Files without a filename no longer set a Content-Type in multipart data. (Commit ed94950)487488### Changed489490- Added `httpx.stream()` API. Using `stream=True` now results in a warning. (Pull #600, #610)491- HTTP/2 support is switched to "off by default", but can be enabled explicitly. (Pull #584)492- Switched to `Client(http2=True)` API from `Client(http_versions=["HTTP/1.1", "HTTP/2"])`. (Pull #586)493- Removed all private types from the top-level package export. (Pull #608)494- The SSL configuration settings of `verify`, `cert`, and `trust_env` now raise warnings if used per-request when using a Client instance. They should always be set on the Client instance itself. (Pull #597)495- Use plain strings "TUNNEL_ONLY" or "FORWARD_ONLY" on the HTTPProxy `proxy_mode` argument. The `HTTPProxyMode` enum still exists, but its usage will raise warnings. (#610)496- Pool timeouts are now on the timeout configuration, not the pool limits configuration. (Pull #563)497- The timeout configuration is now named `httpx.Timeout(...)`, not `httpx.TimeoutConfig(...)`. The old version currently remains as a synonym for backwards compatability. (Pull #591)498Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 499–500why, one step back499---500Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 501–506why, one step back501## 0.8.0 (November 27, 2019)502503### Removed504505- The synchronous API has been removed, in order to allow us to fundamentally change how we approach supporting both sync and async variants. (See #588 for more details.)506Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 507–508why, one step back507---508Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 509–629why, one step back509## 0.7.8 (November 17, 2019)510511### Added512513- Add support for proxy tunnels for Python 3.6 + asyncio. (Pull #521)514515## 0.7.7 (November 15, 2019)516517### Fixed518519- Resolve an issue with cookies behavior on redirect requests. (Pull #529)520521### Added522523- Add request/response DEBUG logs. (Pull #502)524- Use TRACE log level for low level info. (Pull #500)525526## 0.7.6 (November 2, 2019)527528### Removed529530- Drop `proxies` parameter from the high-level API. (Pull #485)531532### Fixed533534- Tweak multipart files: omit null filenames, add support for `str` file contents. (Pull #482)535- Cache NETRC authentication per-client. (Pull #400)536- Rely on `getproxies` for all proxy environment variables. (Pull #470)537- Wait for the `asyncio` stream to close when closing a connection. (Pull #494)538539## 0.7.5 (October 10, 2019)540541### Added542543- Allow lists of values to be passed to `params`. (Pull #386)544- `ASGIDispatch`, `WSGIDispatch` are now available in the `httpx.dispatch` namespace. (Pull #407)545- `HTTPError` is now available in the `httpx` namespace. (Pull #421)546- Add support for `start_tls()` to the Trio concurrency backend. (Pull #467)547548### Fixed549550- Username and password are no longer included in the `Host` header when basic authentication551 credentials are supplied via the URL. (Pull #417)552553### Removed554555- The `.delete()` function no longer has `json`, `data`, or `files` parameters556 to match the expected semantics of the `DELETE` method. (Pull #408)557- Removed the `trio` extra. Trio support is detected automatically. (Pull #390)558559## 0.7.4 (September 25, 2019)560561### Added562563- Add Trio concurrency backend. (Pull #276)564- Add `params` parameter to `Client` for setting default query parameters. (Pull #372)565- Add support for `SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables. (Pull #307)566- Add debug logging to calls into ASGI apps. (Pull #371)567- Add debug logging to SSL configuration. (Pull #378)568569### Fixed570571- Fix a bug when using `Client` without timeouts in Python 3.6. (Pull #383)572- Propagate `Client` configuration to HTTP proxies. (Pull #377)573574## 0.7.3 (September 20, 2019)575576### Added577578- HTTP Proxy support. (Pulls #259, #353)579- Add Digest authentication. (Pull #332)580- Add `.build_request()` method to `Client` and `AsyncClient`. (Pull #319)581- Add `.elapsed` property on responses. (Pull #351)582- Add support for `SSLKEYLOGFILE` in Python 3.8b4+. (Pull #301)583584### Removed585586- Drop NPN support for HTTP version negotiation. (Pull #314)587588### Fixed589590- Fix distribution of type annotations for mypy (Pull #361).591- Set `Host` header when redirecting cross-origin. (Pull #321)592- Drop `Content-Length` headers on `GET` redirects. (Pull #310)593- Raise `KeyError` if header isn't found in `Headers`. (Pull #324)594- Raise `NotRedirectResponse` in `response.next()` if there is no redirection to perform. (Pull #297)595- Fix bug in calculating the HTTP/2 maximum frame size. (Pull #153)596597## 0.7.2 (August 28, 2019)598599- Enforce using `httpx.AsyncioBackend` for the synchronous client. (Pull #232)600- `httpx.ConnectionPool` will properly release a dropped connection. (Pull #230)601- Remove the `raise_app_exceptions` argument from `Client`. (Pull #238)602- `DecodeError` will no longer be raised for an empty body encoded with Brotli. (Pull #237)603- Added `http_versions` parameter to `Client`. (Pull #250)604- Only use HTTP/1.1 on short-lived connections like `httpx.get()`. (Pull #284)605- Convert `Client.cookies` and `Client.headers` when set as a property. (Pull #274)606- Setting `HTTPX_DEBUG=1` enables debug logging on all requests. (Pull #277)607608## 0.7.1 (August 18, 2019)609610- Include files with source distribution to be installable. (Pull #233)611612## 0.7.0 (August 17, 2019)613614- Add the `trust_env` property to `BaseClient`. (Pull #187)615- Add the `links` property to `BaseResponse`. (Pull #211)616- Accept `ssl.SSLContext` instances into `SSLConfig(verify=...)`. (Pull #215)617- Add `Response.stream_text()` with incremental encoding detection. (Pull #183)618- Properly updated the `Host` header when a redirect changes the origin. (Pull #199)619- Ignore invalid `Content-Encoding` headers. (Pull #196)620- Use `~/.netrc` and `~/_netrc` files by default when `trust_env=True`. (Pull #189)621- Create exception base class `HTTPError` with `request` and `response` properties. (Pull #162)622- Add HSTS preload list checking within `BaseClient` to upgrade HTTP URLs to HTTPS. (Pull #184)623- Switch IDNA encoding from IDNA 2003 to IDNA 2008. (Pull #161)624- Expose base classes for alternate concurrency backends. (Pull #178)625- Improve Multipart parameter encoding. (Pull #167)626- Add the `headers` proeprty to `BaseClient`. (Pull #159)627- Add support for Google's `brotli` library. (Pull #156)628- Remove deprecated TLS versions (TLSv1 and TLSv1.1) from default `SSLConfig`. (Pull #155)629- Fix `URL.join(...)` to work similarly to RFC 3986 URL joining. (Pull #144)Version 0.14.0 (#1083)Tom Christiebefore adoption8c7729e
lines 630–631why, one step back630631---Update dependencies in docs (#969)Tom Christiebefore adoption99a5c78
lines 632–676why, one step back632633## 0.6.8 (July 25, 2019)634635- Check for disconnections when searching for an available636 connection in `ConnectionPool.keepalive_connections` (Pull #145)637- Allow string comparison for `URL` objects (Pull #139)638- Add HTTP status codes 418 and 451 (Pull #135)639- Add support for client certificate passwords (Pull #118)640- Enable post-handshake client cert authentication for TLSv1.3 (Pull #118)641- Disable using `commonName` for hostname checking for OpenSSL 1.1.0+ (Pull #118)642- Detect encoding for `Response.json()` (Pull #116)643644## 0.6.7 (July 8, 2019)645646- Check for connection aliveness on re-acquiry (Pull #111)647648## 0.6.6 (July 3, 2019)649650- Improve `USER_AGENT` (Pull #110)651- Add `Connection: keep-alive` by default to HTTP/1.1 connections. (Pull #110)652653## 0.6.5 (June 27, 2019)654655- Include `Host` header by default. (Pull #109)656- Improve HTTP protocol detection. (Pull #107)657658## 0.6.4 (June 25, 2019)659660- Implement read and write timeouts (Pull #104)661662## 0.6.3 (June 24, 2019)663664- Handle early connection closes (Pull #103)665666## 0.6.2 (June 23, 2019)667668- Use urllib3's `DEFAULT_CIPHERS` for the `SSLConfig` object. (Pull #100)669670## 0.6.1 (June 21, 2019)671672- Add support for setting a `base_url` on the `Client`.673674## 0.6.0 (June 21, 2019)675676- Honor `local_flow_control_window` for HTTP/2 connections (Pull #98)