CHANGELOG.md
This file
Path
CHANGELOG.md
469 lines · 19.0 KiB · Markdown
Last changed by
Version 0.13.3 (#1006)Tom Christiebefore adoption56d8800
History of this fileTake it
The walk stopped after 200 commits: lines older than 38a9d77 point at it.
Update changelog to include 'master' (#596)Tom Christiebefore adoption38a9d77
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.13.3 (#1006)Tom Christiebefore adoption56d8800
lines 7–13why, one step back7## 0.13.3 (May 29th, 2020)89### Fixed1011* Include missing keepalive expiry configuration. (Pull #1005)12* Improved error message when URL redirect has a custom scheme. (Pull #1002)13Version 0.13.2 (#1001)Tom Christiebefore adoptionf5e1aa5
lines 14–21why, one step back14## 0.13.2 (May 27th, 2020)1516### Fixed1718* Include explicit "Content-Length: 0" on POST, PUT, PATCH if no request body is used. (Pull #995)19* Add `http2` option to `httpx.Client`. (Pull #982)20* Tighten up API typing in places. (Pull #992, #999)21Version 0.13.1 (#981)Tom Christiebefore adoptionebc9c29
lines 22–28why, one step back22## 0.13.1 (May 22nd, 2020)2324### Fixed2526* Fix pool options deprecation warning. (Pull #980)27* Include `httpx.URLLib3ProxyTransport` in top-level API. (Pull #979)28Version 0.13 (#971)Tom Christiebefore adoption2c2c6a7
lines 29–67why, one step back29## 0.13.0 (May 22nd, 2020)3031This release switches to `httpcore` for all the internal networking, which means:3233* We're using the same codebase for both our sync and async clients.34* HTTP/2 support is now available with the sync client.35* We no longer have a `urllib3` dependency for our sync client, although there is still an *optional* `URLLib3Transport` class.3637It 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.3839We 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".4041### Changed4243* Use `httpcore` for underlying HTTP transport. Drop `urllib3` requirement. (Pull #804, #967)44* Rename pool limit options from `soft_limit`/`hard_limit` to `max_keepalive`/`max_connections`. (Pull #968)45* 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)4647### Added4849* Added `URLLib3Transport` class for optional `urllib3` transport support. (Pull #804, #963)50* Streaming multipart uploads. (Pull #857)51* Logging via HTTPCORE_LOG_LEVEL and HTTPX_LOG_LEVEL environment variables52and TRACE level logging. (Pull encode/httpcore#79)5354### Fixed5556* Performance improvement in brotli decoder. (Pull #906)57* Proper warning level of deprecation notice in `Response.stream` and `Response.raw`. (Pull #908)58* Fix support for generator based WSGI apps. (Pull #887)59* Reuse of connections on HTTP/2 in close concurrency situations. (Pull encode/httpcore#81)60* Honor HTTP/2 max concurrent streams settings (Pull encode/httpcore#89, encode/httpcore#90)61* Fix bytes support in multipart uploads. (Pull #974)62* Improve typing support for `files=...`. (Pull #976)6364### Removed6566* Dropped support for `Client(uds=...)` (Pull #804)67Version 0.13.0.dev2 (#941)Tom Christiebefore adoption97d488a
lines 68–73why, one step back68## 0.13.0.dev2 (May 12th, 2020)6970The 0.13.0.dev2 is a *pre-release* version. To install it, use `pip install httpx --pre`.7172### Added73Version 0.13 (#971)Tom Christiebefore adoption2c2c6a7
line 74why, one step back74* Logging via HTTPCORE_LOG_LEVEL and HTTPX_LOG_LEVEL environment variablesVersion 0.13.0.dev2 (#941)Tom Christiebefore adoption97d488a
lines 75–78why, one step back75and TRACE level logging. (HTTPCore Pull #79)7677### Fixed78Version 0.13 (#971)Tom Christiebefore adoption2c2c6a7
lines 79–80why, one step back79* Reuse of connections on HTTP/2 in close concurrency situations. (HTTPCore Pull #81)80* When using an `app=<ASGI app>` observe neater disconnect behaviour instead of sending empty body messages. (Pull #919)Version 0.13.0.dev2 (#941)Tom Christiebefore adoption97d488a
line 81why, one step back81Version 0.13.0.dev1 (#935)Yeray Diaz Diazbefore adoption560b119
lines 82–87why, one step back82## 0.13.0.dev1 (May 6th, 2020)8384The 0.13.0.dev1 is a *pre-release* version. To install it, use `pip install httpx --pre`.8586### Fixed87Version 0.13 (#971)Tom Christiebefore adoption2c2c6a7
lines 88–89why, one step back88* Passing `http2` flag to proxy dispatchers. (Pull #934)89* Use [`httpcore` v0.8.3](https://github.com/encode/httpcore/releases/tag/0.8.3)Version 0.13.0.dev1 (#935)Yeray Diaz Diazbefore adoption560b119
lines 90–91why, one step back90which addresses problems in handling of headers when using proxies.91Version 0.13.0.dev0 (#915)Tom Christiebefore adoptionbed3d8b
lines 92–122why, one step back92## 0.13.0.dev0 (April 30th, 2020)9394The 0.13.0.dev0 is a *pre-release* version. To install it, use `pip install httpx --pre`.9596This release switches to `httpcore` for all the internal networking, which means:9798* We're using the same codebase for both our sync and async clients.99* HTTP/2 support is now available with the sync client.100* We no longer have a `urllib3` dependency for our sync client, although there is still an *optional* `URLLib3Dispatcher` class.101102It 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.103104### Changed105106* Use `httpcore` for underlying HTTP transport. Drop `urllib3` requirement. (Pull #804)107108### Added109110* Added `URLLib3Dispatcher` class for optional `urllib3` transport support. (Pull #804)111* Streaming multipart uploads. (Pull #857)112113### Fixed114115* Performance improvement in brotli decoder. (Pull #906)116* Proper warning level of deprecation notice in `Response.stream` and `Response.raw`. (Pull #908)117* Fix support for generator based WSGI apps. (Pull #887)118119### Removed120121* Dropped support for `Client(uds=...)` (Pull #804)122Version 0.12.1 (#868)Tom Christiebefore adoption23486b5
lines 123–128why, one step back123## 0.12.1 (March 19th, 2020)124125### Fixed126127* Resolved packaging issue, where additional files were being included.128Update CHANGELOG.md (#854)Tom Christiebefore adoptiona82adcc
line 129why, one step back129## 0.12.0 (March 9th, 2020)Version 0.12 (#849)Tom Christiebefore adoption9708866
lines 130–155why, one step back130131The 0.12 release tightens up the API expectations for `httpx` by switching to private module names to enforce better clarity around public API.132133All 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`.134135### Added136137* Support making response body available to auth classes with `.requires_response_body`. (Pull #803)138* Export `NetworkError` exception. (Pull #814)139* Add support for `NO_PROXY` environment variable. (Pull #835)140141### Changed142143* Switched to private module names. (Pull #785)144* Drop redirect looping detection and the `RedirectLoop` exception, instead using `TooManyRedirects`. (Pull #819)145* Drop `backend=...` parameter on `AsyncClient`, in favour of always autodetecting `trio`/`asyncio`. (Pull #791)146147### Fixed148149* Support basic auth credentials in proxy URLs. (Pull #780)150* Fix `httpx.Proxy(url, mode="FORWARD_ONLY")` configuration. (Pull #788)151* Fallback to setting headers as UTF-8 if no encoding is specified. (Pull #820)152* Close proxy dispatches classes on client close. (Pull #826)153* Support custom `cert` parameters even if `verify=False`. (Pull #796)154* Don't support invalid dict-of-dicts form data in `data=...`. (Pull #811)155Version 0.11.1 (#773)Tom Christiebefore adoptionb128bfa
lines 156–164why, one step back156## 0.11.1 (January 17th, 2020)157158### Fixed159160* Fixed usage of `proxies=...` on `Client()`. (Pull #763)161* Support both `zlib` and `deflate` style encodings on `Content-Encoding: deflate`. (Pull #758)162* Fix for streaming a redirect response body with `allow_redirects=False`. (Pull #766)163* Handle redirect with malformed Location headers missing host. (Pull #774)164Update CHANGELOG.mdTom Christiebefore adoption7b576fa
line 165why, one step back165## 0.11.0 (January 9th, 2020)Version 0.11.0 (#737)Tom Christiebefore adoption2c5fdc5
lines 166–193why, one step back166167The 0.11 release reintroduces our sync support, so that `httpx` now supports both a standard thread-concurrency API, and an async API.168169Existing async `httpx` users that are upgrading to 0.11 should ensure that:170171* Async codebases should always use a client instance to make requests, instead of the top-level API.172* The async client is named as `httpx.AsyncClient()`, instead of `httpx.Client()`.173* 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.174175We believe the API is now pretty much stable, and are aiming for a 1.0 release sometime on or before April 2020.176177### Changed178179- Top level API such as `httpx.get(url, ...)`, `httpx.post(url, ...)`, `httpx.request(method, url, ...)` becomes synchronous.180- Added `httpx.Client()` for synchronous clients, with `httpx.AsyncClient` being used for async clients.181- Switched to `proxies=httpx.Proxy(...)` for proxy configuration.182- Network connection errors are wrapped in `httpx.NetworkError`, rather than exposing lower-level exception types directly.183184### Removed185186- The `request.url.origin` property and `httpx.Origin` class are no longer available.187- 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.188- 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.189190### Fixed191192- Redirect loop detection matches against `(method, url)` rather than `url`. (Pull #734)193Version 0.10.1 (#701)Tom Christiebefore adoptiona9f4d01
lines 194–200why, one step back194## 0.10.1 (December 31st, 2019)195196### Fixed197198- Fix issue with concurrent connection acquiry. (Pull #700)199- Fix write error on closing HTTP/2 connections. (Pull #699)200Version 0.10.0 (#691)Tom Christiebefore adoption35b7516
lines 201–226why, one step back201## 0.10.0 (December 29th, 2019)202203The 0.10.0 release makes some changes that will allow us to support both sync and async interfaces.204205In particular with streaming responses the `response.read()` method becomes `response.aread()`, and the `response.close()` method becomes `response.aclose()`.206207If following redirects explicitly the `response.next()` method becomes `response.anext()`.208209### Fixed210211- End HTTP/2 streams immediately on no-body requests, rather than sending an empty body message. (Pull #682)212- Improve typing for `Response.request`: switch from `Optional[Request]` to `Request`. (Pull #666)213- `Response.elapsed` now reflects the entire download time. (Pull #687, #692)214215### Changed216217- Added `AsyncClient` as a synonym for `Client`. (Pull #680)218- Switch to `response.aread()` for conditionally reading streaming responses. (Pull #674)219- Switch to `response.aclose()` and `client.aclose()` for explicit closing. (Pull #674, #675)220- Switch to `response.anext()` for resolving the next redirect response. (Pull #676)221222### Removed223224- 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)225- Removed the undocumented `request.read()`, since end users should not require it.226Version 0.9.5 (#657)Tom Christiebefore adoption9904684
lines 227–236why, one step back227## 0.9.5 (December 20th, 2019)228229### Fixed230231- Fix Host header and HSTS rewrites when an explicit `:80` port is included in URL. (Pull #649)232- Query Params on the URL string are merged with any `params=...` argument. (Pull #653)233- More robust behavior when closing connections. (Pull #640)234- More robust behavior when handling HTTP/2 headers with trailing whitespace. (Pull #637)235- Allow any explicit `Content-Type` header to take precedence over the encoding default. (Pull #633)236Version 0.9.4 (#631)Tom Christiebefore adoptionb847ab0
lines 237–243why, one step back237## 0.9.4 (December 12th, 2019)238239### Fixed240241- Added expiry to Keep-Alive connections, resolving issues with acquiring connections. (Pull #627)242- Increased flow control windows on HTTP/2, resolving download speed issues. (Pull #629)243Add 'fork' to auto backend (#614)Tom Christiebefore adoptionf55db15
lines 244–249why, one step back244## 0.9.3 (December 7th, 2019)245246### Fixed247248- Fixed HTTP/2 with autodetection backend. (Pull #614)249Add 0.9.2 noteTom Christiebefore adoption2394aab
lines 250–253why, one step back250## 0.9.2 (December 7th, 2019)251252* Released due to packaging build artifact.2530.9.1 noteTom Christiebefore adoption0aa1815
lines 254–257why, one step back254## 0.9.1 (December 6th, 2019)255256* Released due to packaging build artifact.257Version 0.9 (#606)Tom Christiebefore adoption8d1bc9e
line 258why, one step back258## 0.9.0 (December 6th, 2019)Update changelog to include 'master' (#596)Tom Christiebefore adoption38a9d77
line 259why, one step back259Version 0.9 (#606)Tom Christiebefore adoption8d1bc9e
lines 260–272why, one step back260The 0.9 releases brings some major new features, including:261262* A new streaming API.263* Autodetection of either asyncio or trio.264* Nicer timeout configuration.265* HTTP/2 support off by default, but can be enabled.266267We've also removed all private types from the top-level package export.268269In order to ensure you are only ever working with public API you should make270sure to only import the top-level package eg. `import httpx`, rather than271importing modules within the package.272Update changelog to include 'master' (#596)Tom Christiebefore adoption38a9d77
lines 273–288why, one step back273### Added274275- Added concurrency backend autodetection. (Pull #585)276- Added `Client(backend='trio')` and `Client(backend='asyncio')` API. (Pull #585)277- Added `response.stream_lines()` API. (Pull #575)278- Added `response.is_error` API. (Pull #574)279- Added support for `timeout=Timeout(5.0, connect_timeout=60.0)` styles. (Pull #593)280281### Fixed282283- Requests or Clients with `timeout=None` now correctly always disable timeouts. (Pull #592)284- Request 'Authorization' headers now have priority over `.netrc` authentication info. (Commit 095b691)285- Files without a filename no longer set a Content-Type in multipart data. (Commit ed94950)286287### Changed288Version 0.9 (#606)Tom Christiebefore adoption8d1bc9e
line 289why, one step back289- 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 290–291why, one step back290- HTTP/2 support is switched to "off by default", but can be enabled explicitly. (Pull #584)291- 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 292–294why, one step back292- Removed all private types from the top-level package export. (Pull #608)293- 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)294- 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 295–469why, one step back295- Pool timeouts are now on the timeout configuration, not the pool limits configuration. (Pull #563)296- The timeout configuration is now named `httpx.Timeout(...)`, not `httpx.TimeoutConfig(...)`. The old version currently remains as a synonym for backwards compatability. (Pull #591)297298## 0.8.0 (November 27, 2019)299300### Removed301302- 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.)303304## 0.7.8 (November 17, 2019)305306### Added307308- Add support for proxy tunnels for Python 3.6 + asyncio. (Pull #521)309310## 0.7.7 (November 15, 2019)311312### Fixed313314- Resolve an issue with cookies behavior on redirect requests. (Pull #529)315316### Added317318- Add request/response DEBUG logs. (Pull #502)319- Use TRACE log level for low level info. (Pull #500)320321## 0.7.6 (November 2, 2019)322323### Removed324325- Drop `proxies` parameter from the high-level API. (Pull #485)326327### Fixed328329- Tweak multipart files: omit null filenames, add support for `str` file contents. (Pull #482)330- Cache NETRC authentication per-client. (Pull #400)331- Rely on `getproxies` for all proxy environment variables. (Pull #470)332- Wait for the `asyncio` stream to close when closing a connection. (Pull #494)333334## 0.7.5 (October 10, 2019)335336### Added337338- Allow lists of values to be passed to `params`. (Pull #386)339- `ASGIDispatch`, `WSGIDispatch` are now available in the `httpx.dispatch` namespace. (Pull #407)340- `HTTPError` is now available in the `httpx` namespace. (Pull #421)341- Add support for `start_tls()` to the Trio concurrency backend. (Pull #467)342343### Fixed344345- Username and password are no longer included in the `Host` header when basic authentication346 credentials are supplied via the URL. (Pull #417)347348### Removed349350- The `.delete()` function no longer has `json`, `data`, or `files` parameters351 to match the expected semantics of the `DELETE` method. (Pull #408)352- Removed the `trio` extra. Trio support is detected automatically. (Pull #390)353354## 0.7.4 (September 25, 2019)355356### Added357358- Add Trio concurrency backend. (Pull #276)359- Add `params` parameter to `Client` for setting default query parameters. (Pull #372)360- Add support for `SSL_CERT_FILE` and `SSL_CERT_DIR` environment variables. (Pull #307)361- Add debug logging to calls into ASGI apps. (Pull #371)362- Add debug logging to SSL configuration. (Pull #378)363364### Fixed365366- Fix a bug when using `Client` without timeouts in Python 3.6. (Pull #383)367- Propagate `Client` configuration to HTTP proxies. (Pull #377)368369## 0.7.3 (September 20, 2019)370371### Added372373- HTTP Proxy support. (Pulls #259, #353)374- Add Digest authentication. (Pull #332)375- Add `.build_request()` method to `Client` and `AsyncClient`. (Pull #319)376- Add `.elapsed` property on responses. (Pull #351)377- Add support for `SSLKEYLOGFILE` in Python 3.8b4+. (Pull #301)378379### Removed380381- Drop NPN support for HTTP version negotiation. (Pull #314)382383### Fixed384385- Fix distribution of type annotations for mypy (Pull #361).386- Set `Host` header when redirecting cross-origin. (Pull #321)387- Drop `Content-Length` headers on `GET` redirects. (Pull #310)388- Raise `KeyError` if header isn't found in `Headers`. (Pull #324)389- Raise `NotRedirectResponse` in `response.next()` if there is no redirection to perform. (Pull #297)390- Fix bug in calculating the HTTP/2 maximum frame size. (Pull #153)391392## 0.7.2 (August 28, 2019)393394- Enforce using `httpx.AsyncioBackend` for the synchronous client. (Pull #232)395- `httpx.ConnectionPool` will properly release a dropped connection. (Pull #230)396- Remove the `raise_app_exceptions` argument from `Client`. (Pull #238)397- `DecodeError` will no longer be raised for an empty body encoded with Brotli. (Pull #237)398- Added `http_versions` parameter to `Client`. (Pull #250)399- Only use HTTP/1.1 on short-lived connections like `httpx.get()`. (Pull #284)400- Convert `Client.cookies` and `Client.headers` when set as a property. (Pull #274)401- Setting `HTTPX_DEBUG=1` enables debug logging on all requests. (Pull #277)402403## 0.7.1 (August 18, 2019)404405- Include files with source distribution to be installable. (Pull #233)406407## 0.7.0 (August 17, 2019)408409- Add the `trust_env` property to `BaseClient`. (Pull #187)410- Add the `links` property to `BaseResponse`. (Pull #211)411- Accept `ssl.SSLContext` instances into `SSLConfig(verify=...)`. (Pull #215)412- Add `Response.stream_text()` with incremental encoding detection. (Pull #183)413- Properly updated the `Host` header when a redirect changes the origin. (Pull #199)414- Ignore invalid `Content-Encoding` headers. (Pull #196)415- Use `~/.netrc` and `~/_netrc` files by default when `trust_env=True`. (Pull #189)416- Create exception base class `HTTPError` with `request` and `response` properties. (Pull #162)417- Add HSTS preload list checking within `BaseClient` to upgrade HTTP URLs to HTTPS. (Pull #184)418- Switch IDNA encoding from IDNA 2003 to IDNA 2008. (Pull #161)419- Expose base classes for alternate concurrency backends. (Pull #178)420- Improve Multipart parameter encoding. (Pull #167)421- Add the `headers` proeprty to `BaseClient`. (Pull #159)422- Add support for Google's `brotli` library. (Pull #156)423- Remove deprecated TLS versions (TLSv1 and TLSv1.1) from default `SSLConfig`. (Pull #155)424- Fix `URL.join(...)` to work similarly to RFC 3986 URL joining. (Pull #144)425426## 0.6.8 (July 25, 2019)427428- Check for disconnections when searching for an available429 connection in `ConnectionPool.keepalive_connections` (Pull #145)430- Allow string comparison for `URL` objects (Pull #139)431- Add HTTP status codes 418 and 451 (Pull #135)432- Add support for client certificate passwords (Pull #118)433- Enable post-handshake client cert authentication for TLSv1.3 (Pull #118)434- Disable using `commonName` for hostname checking for OpenSSL 1.1.0+ (Pull #118)435- Detect encoding for `Response.json()` (Pull #116)436437## 0.6.7 (July 8, 2019)438439- Check for connection aliveness on re-acquiry (Pull #111)440441## 0.6.6 (July 3, 2019)442443- Improve `USER_AGENT` (Pull #110)444- Add `Connection: keep-alive` by default to HTTP/1.1 connections. (Pull #110)445446## 0.6.5 (June 27, 2019)447448- Include `Host` header by default. (Pull #109)449- Improve HTTP protocol detection. (Pull #107)450451## 0.6.4 (June 25, 2019)452453- Implement read and write timeouts (Pull #104)454455## 0.6.3 (June 24, 2019)456457- Handle early connection closes (Pull #103)458459## 0.6.2 (June 23, 2019)460461- Use urllib3's `DEFAULT_CIPHERS` for the `SSLConfig` object. (Pull #100)462463## 0.6.1 (June 21, 2019)464465- Add support for setting a `base_url` on the `Client`.466467## 0.6.0 (June 21, 2019)468469- Honor `local_flow_control_window` for HTTP/2 connections (Pull #98)