CHANGELOG.md
This file
Path
CHANGELOG.md
282 lines · 10.9 KiB · Markdown
Last changed by
Version 0.10.1 (#701)Tom Christiebefore adoptiona9f4d01
History of this fileTake it
The walk stopped after 200 commits: lines older than 0f34f3b point at it.
Raise KeyError if header isn't found in Headers (#324)Gaurav Dhameejabefore adoption0f34f3b
lines 1–2why, one step back1# Changelog2Release 0.7.3 (#362)Florimond Mancabefore adoption7a08aaa
lines 3–6why, one step back3All 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.10.1 (#701)Tom Christiebefore adoptiona9f4d01
lines 7–13why, one step back7## 0.10.1 (December 31st, 2019)89### Fixed1011- Fix issue with concurrent connection acquiry. (Pull #700)12- Fix write error on closing HTTP/2 connections. (Pull #699)13Version 0.10.0 (#691)Tom Christiebefore adoption35b7516
lines 14–39why, one step back14## 0.10.0 (December 29th, 2019)1516The 0.10.0 release makes some changes that will allow us to support both sync and async interfaces.1718In particular with streaming responses the `response.read()` method becomes `response.aread()`, and the `response.close()` method becomes `response.aclose()`.1920If following redirects explicitly the `response.next()` method becomes `response.anext()`.2122### Fixed2324- End HTTP/2 streams immediately on no-body requests, rather than sending an empty body message. (Pull #682)25- Improve typing for `Response.request`: switch from `Optional[Request]` to `Request`. (Pull #666)26- `Response.elapsed` now reflects the entire download time. (Pull #687, #692)2728### Changed2930- Added `AsyncClient` as a synonym for `Client`. (Pull #680)31- Switch to `response.aread()` for conditionally reading streaming responses. (Pull #674)32- Switch to `response.aclose()` and `client.aclose()` for explicit closing. (Pull #674, #675)33- Switch to `response.anext()` for resolving the next redirect response. (Pull #676)3435### Removed3637- 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)38- Removed the undocumented `request.read()`, since end users should not require it.39Version 0.9.5 (#657)Tom Christiebefore adoption9904684
lines 40–49why, one step back40## 0.9.5 (December 20th, 2019)4142### Fixed4344- Fix Host header and HSTS rewrites when an explicit `:80` port is included in URL. (Pull #649)45- Query Params on the URL string are merged with any `params=...` argument. (Pull #653)46- More robust behavior when closing connections. (Pull #640)47- More robust behavior when handling HTTP/2 headers with trailing whitespace. (Pull #637)48- Allow any explicit `Content-Type` header to take precedence over the encoding default. (Pull #633)49Version 0.9.4 (#631)Tom Christiebefore adoptionb847ab0
lines 50–56why, one step back50## 0.9.4 (December 12th, 2019)5152### Fixed5354- Added expiry to Keep-Alive connections, resolving issues with acquiring connections. (Pull #627)55- Increased flow control windows on HTTP/2, resolving download speed issues. (Pull #629)56Add 'fork' to auto backend (#614)Tom Christiebefore adoptionf55db15
lines 57–62why, one step back57## 0.9.3 (December 7th, 2019)5859### Fixed6061- Fixed HTTP/2 with autodetection backend. (Pull #614)62Add 0.9.2 noteTom Christiebefore adoption2394aab
lines 63–66why, one step back63## 0.9.2 (December 7th, 2019)6465* Released due to packaging build artifact.660.9.1 noteTom Christiebefore adoption0aa1815
lines 67–70why, one step back67## 0.9.1 (December 6th, 2019)6869* Released due to packaging build artifact.70Version 0.9 (#606)Tom Christiebefore adoption8d1bc9e
line 71why, one step back71## 0.9.0 (December 6th, 2019)Update changelog to include 'master' (#596)Tom Christiebefore adoption38a9d77
line 72why, one step back72Version 0.9 (#606)Tom Christiebefore adoption8d1bc9e
lines 73–85why, one step back73The 0.9 releases brings some major new features, including:7475* A new streaming API.76* Autodetection of either asyncio or trio.77* Nicer timeout configuration.78* HTTP/2 support off by default, but can be enabled.7980We've also removed all private types from the top-level package export.8182In order to ensure you are only ever working with public API you should make83sure to only import the top-level package eg. `import httpx`, rather than84importing modules within the package.85Update changelog to include 'master' (#596)Tom Christiebefore adoption38a9d77
lines 86–101why, one step back86### Added8788- Added concurrency backend autodetection. (Pull #585)89- Added `Client(backend='trio')` and `Client(backend='asyncio')` API. (Pull #585)90- Added `response.stream_lines()` API. (Pull #575)91- Added `response.is_error` API. (Pull #574)92- Added support for `timeout=Timeout(5.0, connect_timeout=60.0)` styles. (Pull #593)9394### Fixed9596- Requests or Clients with `timeout=None` now correctly always disable timeouts. (Pull #592)97- Request 'Authorization' headers now have priority over `.netrc` authentication info. (Commit 095b691)98- Files without a filename no longer set a Content-Type in multipart data. (Commit ed94950)99100### Changed101Version 0.9 (#606)Tom Christiebefore adoption8d1bc9e
line 102why, one step back102- Added `httpx.stream()` API. Using `stream=True` now results in a warning. (Pull #600, #610)Update changelog to include 'master' (#596)Tom Christiebefore adoption38a9d77
lines 103–104why, one step back103- HTTP/2 support is switched to "off by default", but can be enabled explicitly. (Pull #584)104- Switched to `Client(http2=True)` API from `Client(http_versions=["HTTP/1.1", "HTTP/2"])`. (Pull #586)Version 0.9 (#606)Tom Christiebefore adoption8d1bc9e
lines 105–107why, one step back105- Removed all private types from the top-level package export. (Pull #608)106- 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)107- 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)Update changelog to include 'master' (#596)Tom Christiebefore adoption38a9d77
lines 108–110why, one step back108- Pool timeouts are now on the timeout configuration, not the pool limits configuration. (Pull #563)109- The timeout configuration is now named `httpx.Timeout(...)`, not `httpx.TimeoutConfig(...)`. The old version currently remains as a synonym for backwards compatability. (Pull #591)110Update CHANGELOG.mdTom Christiebefore adoption1c9167e
lines 111–114why, one step back111## 0.8.0 (November 27, 2019)112113### Removed114Update changelog to include 'master' (#596)Tom Christiebefore adoption38a9d77
line 115why, one step back115- 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.)Update CHANGELOG.mdTom Christiebefore adoption1c9167e
line 116why, one step back116Release 0.7.8 (#536)Florimond Mancabefore adoptiona5f9983
lines 117–122why, one step back117## 0.7.8 (November 17, 2019)118119### Added120121- Add support for proxy tunnels for Python 3.6 + asyncio. (Pull #521)122Version 0.7.7 (#532)Tom Christiebefore adoption6045ee2
lines 123–133why, one step back123## 0.7.7 (November 15, 2019)124125### Fixed126127- Resolve an issue with cookies behavior on redirect requests. (Pull #529)128129### Added130131- Add request/response DEBUG logs. (Pull #502)132- Use TRACE log level for low level info. (Pull #500)133Release 0.7.6 (#499)Florimond Mancabefore adoptiona629478
lines 134–146why, one step back134## 0.7.6 (November 2, 2019)135136### Removed137138- Drop `proxies` parameter from the high-level API. (Pull #485)139140### Fixed141142- Tweak multipart files: omit null filenames, add support for `str` file contents. (Pull #482)143- Cache NETRC authentication per-client. (Pull #400)144- Rely on `getproxies` for all proxy environment variables. (Pull #470)145- Wait for the `asyncio` stream to close when closing a connection. (Pull #494)146Release 0.7.5 (#468)Seth Michael Larsonbefore adoptionc1f5127
lines 147–166why, one step back147## 0.7.5 (October 10, 2019)148149### Added150151- Allow lists of values to be passed to `params`. (Pull #386)152- `ASGIDispatch`, `WSGIDispatch` are now available in the `httpx.dispatch` namespace. (Pull #407)153- `HTTPError` is now available in the `httpx` namespace. (Pull #421)154- Add support for `start_tls()` to the Trio concurrency backend. (Pull #467)155156### Fixed157158- Username and password are no longer included in the `Host` header when basic authentication159 credentials are supplied via the URL. (Pull #417)160161### Removed162163- The `.delete()` function no longer has `json`, `data`, or `files` parameters164 to match the expected semantics of the `DELETE` method. (Pull #408)165- Removed the `trio` extra. Trio support is detected automatically. (Pull #390)166Release 0.7.4 (#388)Florimond Mancabefore adoption640667d
lines 167–181why, one step back167## 0.7.4 (September 25, 2019)168169### Added170171- Add Trio concurrency backend. (Pull #276)172- Add `params` parameter to `Client` for setting default query parameters. (Pull #372)173- Add support for `SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables. (Pull #307)174- Add debug logging to calls into ASGI apps. (Pull #371)175- Add debug logging to SSL configuration. (Pull #378)176177### Fixed178179- Fix a bug when using `Client` without timeouts in Python 3.6. (Pull #383)180- Propagate `Client` configuration to HTTP proxies. (Pull #377)181Release 0.7.3 (#362)Florimond Mancabefore adoption7a08aaa
lines 182–204why, one step back182## 0.7.3 (September 20, 2019)183184### Added185186- HTTP Proxy support. (Pulls #259, #353)187- Add Digest authentication. (Pull #332)188- Add `.build_request()` method to `Client` and `AsyncClient`. (Pull #319)189- Add `.elapsed` property on responses. (Pull #351)190- Add support for `SSLKEYLOGFILE` in Python 3.8b4+. (Pull #301)191192### Removed193194- Drop NPN support for HTTP version negotiation. (Pull #314)195196### Fixed197198- Fix distribution of type annotations for mypy (Pull #361).199- Set `Host` header when redirecting cross-origin. (Pull #321)200- Drop `Content-Length` headers on `GET` redirects. (Pull #310)201- Raise `KeyError` if header isn't found in `Headers`. (Pull #324)202- Raise `NotRedirectResponse` in `response.next()` if there is no redirection to perform. (Pull #297)203- Fix bug in calculating the HTTP/2 maximum frame size. (Pull #153)204Raise KeyError if header isn't found in Headers (#324)Gaurav Dhameejabefore adoption0f34f3b
lines 205–282why, one step back205## 0.7.2 (August 28, 2019)206207- Enforce using `httpx.AsyncioBackend` for the synchronous client. (Pull #232)208- `httpx.ConnectionPool` will properly release a dropped connection. (Pull #230)209- Remove the `raise_app_exceptions` argument from `Client`. (Pull #238)210- `DecodeError` will no longer be raised for an empty body encoded with Brotli. (Pull #237)211- Added `http_versions` parameter to `Client`. (Pull #250)212- Only use HTTP/1.1 on short-lived connections like `httpx.get()`. (Pull #284)213- Convert `Client.cookies` and `Client.headers` when set as a property. (Pull #274)214- Setting `HTTPX_DEBUG=1` enables debug logging on all requests. (Pull #277)215216## 0.7.1 (August 18, 2019)217218- Include files with source distribution to be installable. (Pull #233)219220## 0.7.0 (August 17, 2019)221222- Add the `trust_env` property to `BaseClient`. (Pull #187)223- Add the `links` property to `BaseResponse`. (Pull #211)224- Accept `ssl.SSLContext` instances into `SSLConfig(verify=...)`. (Pull #215)225- Add `Response.stream_text()` with incremental encoding detection. (Pull #183)226- Properly updated the `Host` header when a redirect changes the origin. (Pull #199)227- Ignore invalid `Content-Encoding` headers. (Pull #196)228- Use `~/.netrc` and `~/_netrc` files by default when `trust_env=True`. (Pull #189)229- Create exception base class `HTTPError` with `request` and `response` properties. (Pull #162)230- Add HSTS preload list checking within `BaseClient` to upgrade HTTP URLs to HTTPS. (Pull #184)231- Switch IDNA encoding from IDNA 2003 to IDNA 2008. (Pull #161)232- Expose base classes for alternate concurrency backends. (Pull #178)233- Improve Multipart parameter encoding. (Pull #167)234- Add the `headers` proeprty to `BaseClient`. (Pull #159)235- Add support for Google's `brotli` library. (Pull #156)236- Remove deprecated TLS versions (TLSv1 and TLSv1.1) from default `SSLConfig`. (Pull #155)237- Fix `URL.join(...)` to work similarly to RFC 3986 URL joining. (Pull #144)238239## 0.6.8 (July 25, 2019)240241- Check for disconnections when searching for an available242 connection in `ConnectionPool.keepalive_connections` (Pull #145)243- Allow string comparison for `URL` objects (Pull #139)244- Add HTTP status codes 418 and 451 (Pull #135)245- Add support for client certificate passwords (Pull #118)246- Enable post-handshake client cert authentication for TLSv1.3 (Pull #118)247- Disable using `commonName` for hostname checking for OpenSSL 1.1.0+ (Pull #118)248- Detect encoding for `Response.json()` (Pull #116)249250## 0.6.7 (July 8, 2019)251252- Check for connection aliveness on re-acquiry (Pull #111)253254## 0.6.6 (July 3, 2019)255256- Improve `USER_AGENT` (Pull #110)257- Add `Connection: keep-alive` by default to HTTP/1.1 connections. (Pull #110)258259## 0.6.5 (June 27, 2019)260261- Include `Host` header by default. (Pull #109)262- Improve HTTP protocol detection. (Pull #107)263264## 0.6.4 (June 25, 2019)265266- Implement read and write timeouts (Pull #104)267268## 0.6.3 (June 24, 2019)269270- Handle early connection closes (Pull #103)271272## 0.6.2 (June 23, 2019)273274- Use urllib3's `DEFAULT_CIPHERS` for the `SSLConfig` object. (Pull #100)275276## 0.6.1 (June 21, 2019)277278- Add support for setting a `base_url` on the `Client`.279280## 0.6.0 (June 21, 2019)281282- Honor `local_flow_control_window` for HTTP/2 connections (Pull #98)