From f26db9a3c15566015e2a149b8b16ca79a580479b Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Mon, 30 Nov 2020 14:21:14 +0000 Subject: [PATCH 1/4] Version 0.17.0 --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7751a4fd1e..4c584eadaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## 0.17.0 + +### Added + +* Add `chunk_size` parameter to `iter_raw()`, `iter_bytes()`, `iter_text()`. (Pull #1277) +* Add `keepalive_expiry` parameter to `httpx.Limits()` configuration. (Pull #1398) +* Mount API support, using `httpx.Client(mounts=...)` (Pull #1362) + +### Fixed + +* WSGI `PATH_INFO` should be URL escaped. (Pull #1391) +* Add `raw_path` to ASGI scope. (Pull #1357) + ## 0.16.1 (October 8th, 2020) ### Fixed From c5f368083079e237d03aacc32fba7021e951f592 Mon Sep 17 00:00:00 2001 From: florimondmanca Date: Sun, 28 Feb 2021 12:04:20 +0100 Subject: [PATCH 2/4] Update changelog --- CHANGELOG.md | 10 +++++++++- README.md | 2 +- docs/index.md | 2 +- httpx/__version__.py | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c584eadaa..766f195104 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,14 +8,22 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added +* Add `httpx.MockTransport()`, allowing to mock out a transport using pre-determined responses. (Pull #1401, Pull #1449) +* Add `httpx.HTTPTransport()` and `httpx.AsyncHTTPTransport()` default transports. (Pull #1399) +* Mount API support, using `httpx.Client(mounts=...)`. (Pull #1362) * Add `chunk_size` parameter to `iter_raw()`, `iter_bytes()`, `iter_text()`. (Pull #1277) * Add `keepalive_expiry` parameter to `httpx.Limits()` configuration. (Pull #1398) -* Mount API support, using `httpx.Client(mounts=...)` (Pull #1362) +* Add repr to `httpx.Cookies to display available cookies. (Pull #1411) +* Allow passing a `tuple` of query parameters (previously only `list` was accepted). (Pull #1426) ### Fixed * WSGI `PATH_INFO` should be URL escaped. (Pull #1391) * Add `raw_path` to ASGI scope. (Pull #1357) +* Tweak `create_ssl_context` defaults to use `trust_env=True`. (Pull #1447) +* Properly set default ports in WSGI transport. (Pull #1469) +* Properly encode slashes when using `base_url`. (Pull #1407) +* Properly map exceptions in `request.aclose()`. (Pull #1465) ## 0.16.1 (October 8th, 2020) diff --git a/README.md b/README.md index 60ca24540f..66b2f8688f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2. **Note**: _HTTPX should be considered in beta. We believe we've got the public API to -a stable point now, but would strongly recommend pinning your dependencies to the `0.16.*` +a stable point now, but would strongly recommend pinning your dependencies to the `0.17.*` release, so that you're able to properly review [API changes between package updates](https://github.com/encode/httpx/blob/master/CHANGELOG.md). A 1.0 release is expected to be issued sometime in 2021._ --- diff --git a/docs/index.md b/docs/index.md index abdc9c7d33..3da239f7e8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -27,7 +27,7 @@ HTTPX is a fully featured HTTP client for Python 3, which provides sync and asyn !!! note HTTPX should currently be considered in beta. - We believe we've got the public API to a stable point now, but would strongly recommend pinning your dependencies to the `0.16.*` release, so that you're able to properly review [API changes between package updates](https://github.com/encode/httpx/blob/master/CHANGELOG.md). + We believe we've got the public API to a stable point now, but would strongly recommend pinning your dependencies to the `0.17.*` release, so that you're able to properly review [API changes between package updates](https://github.com/encode/httpx/blob/master/CHANGELOG.md). A 1.0 release is expected to be issued sometime in 2021. diff --git a/httpx/__version__.py b/httpx/__version__.py index 248da917db..f406d12d19 100644 --- a/httpx/__version__.py +++ b/httpx/__version__.py @@ -1,3 +1,3 @@ __title__ = "httpx" __description__ = "A next generation HTTP client, for Python 3." -__version__ = "0.16.1" +__version__ = "0.17.0" From 1bbf2022cb9b04409721857bc2b7708bdae89d6d Mon Sep 17 00:00:00 2001 From: florimondmanca Date: Sun, 28 Feb 2021 12:10:17 +0100 Subject: [PATCH 3/4] Tweak verbs --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 766f195104..b66378e7ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,17 +10,17 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * Add `httpx.MockTransport()`, allowing to mock out a transport using pre-determined responses. (Pull #1401, Pull #1449) * Add `httpx.HTTPTransport()` and `httpx.AsyncHTTPTransport()` default transports. (Pull #1399) -* Mount API support, using `httpx.Client(mounts=...)`. (Pull #1362) +* Add mount API support, using `httpx.Client(mounts=...)`. (Pull #1362) * Add `chunk_size` parameter to `iter_raw()`, `iter_bytes()`, `iter_text()`. (Pull #1277) * Add `keepalive_expiry` parameter to `httpx.Limits()` configuration. (Pull #1398) * Add repr to `httpx.Cookies to display available cookies. (Pull #1411) -* Allow passing a `tuple` of query parameters (previously only `list` was accepted). (Pull #1426) +* Add support for `params=` (previously only `params=` was supported). (Pull #1426) ### Fixed -* WSGI `PATH_INFO` should be URL escaped. (Pull #1391) -* Add `raw_path` to ASGI scope. (Pull #1357) +* Add missing `raw_path` to ASGI scope. (Pull #1357) * Tweak `create_ssl_context` defaults to use `trust_env=True`. (Pull #1447) +* Properly URL-escape WSGI `PATH_INFO`. (Pull #1391) * Properly set default ports in WSGI transport. (Pull #1469) * Properly encode slashes when using `base_url`. (Pull #1407) * Properly map exceptions in `request.aclose()`. (Pull #1465) From a008c06e311c78be967ea45082243ca3392d9d3b Mon Sep 17 00:00:00 2001 From: Florimond Manca Date: Sun, 28 Feb 2021 13:04:01 +0100 Subject: [PATCH 4/4] Fix backtick Co-authored-by: Jamie Hewland --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b66378e7ea..14e4f92ce5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). * Add mount API support, using `httpx.Client(mounts=...)`. (Pull #1362) * Add `chunk_size` parameter to `iter_raw()`, `iter_bytes()`, `iter_text()`. (Pull #1277) * Add `keepalive_expiry` parameter to `httpx.Limits()` configuration. (Pull #1398) -* Add repr to `httpx.Cookies to display available cookies. (Pull #1411) +* Add repr to `httpx.Cookies` to display available cookies. (Pull #1411) * Add support for `params=` (previously only `params=` was supported). (Pull #1426) ### Fixed