]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Version 0.10.0 (#691) 0.10.0
authorTom Christie <tom@tomchristie.com>
Sun, 29 Dec 2019 17:00:34 +0000 (17:00 +0000)
committerGitHub <noreply@github.com>
Sun, 29 Dec 2019 17:00:34 +0000 (17:00 +0000)
* Version 0.10.0

* Update CHANGELOG.md

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Include changelog for 'response.request is no longer optional'.

* Add response.elapsed note to changelog

* Also ref original PR for response.elapsed behavior

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
CHANGELOG.md
README.md
docs/index.md
httpx/__version__.py

index bdb16660dce33a5b92f8b223393f73f5fd332f2f..cfb96504ed4e2d72bffc193b5be263bb34790077 100644 (file)
@@ -4,6 +4,32 @@ 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.10.0 (December 29th, 2019)
+
+The 0.10.0 release makes some changes that will allow us to support both sync and async interfaces.
+
+In particular with streaming responses the `response.read()` method becomes `response.aread()`, and the `response.close()` method becomes `response.aclose()`.
+
+If following redirects explicitly the `response.next()` method becomes `response.anext()`.
+
+### Fixed
+
+- End HTTP/2 streams immediately on no-body requests, rather than sending an empty body message. (Pull #682)
+- Improve typing for `Response.request`: switch from `Optional[Request]` to `Request`. (Pull #666)
+- `Response.elapsed` now reflects the entire download time. (Pull #687, #692)
+
+### Changed
+
+- Added `AsyncClient` as a synonym for `Client`. (Pull #680)
+- Switch to `response.aread()` for conditionally reading streaming responses. (Pull #674)
+- Switch to `response.aclose()` and `client.aclose()` for explicit closing. (Pull #674, #675)
+- Switch to `response.anext()` for resolving the next redirect response. (Pull #676)
+
+### Removed
+
+- 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)
+- Removed the undocumented `request.read()`, since end users should not require it.
+
 ## 0.9.5 (December 20th, 2019)
 
 ### Fixed
index d8dbf8527392207c5248668f4d1a81c8fb8bd9da..b0e213760dde9deaae19dc2cad1de9dffbf16e73 100644 (file)
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ or trio, and is able to support making large numbers of requests concurrently.
 **Note**: *HTTPX should still be considered in alpha. We'd love early users and feedback,
 but would strongly recommend pinning your dependencies to the latest median
 release, so that you're able to properly review API changes between package
-updates. Currently you should be using `httpx==0.9.*`.*
+updates. Currently you should be using `httpx==0.10.*`.*
 
 *In particular, the 0.8 release switched HTTPX into focusing exclusively on
 providing an async client, in order to move the project forward, and help
index 819b28cdeb781394fbd47a744c4143a2f8de8607..61c076b3825026ff002244e62a8fc20f726a9452 100644 (file)
@@ -33,7 +33,7 @@ or trio, and is able to support making large numbers of concurrent requests.
     HTTPX should currently be considered in alpha. We'd love early users and feedback,
     but would strongly recommend pinning your dependencies to the latest median
     release, so that you're able to properly review API changes between package
-    updates. Currently you should be using `httpx==0.9.*`.
+    updates. Currently you should be using `httpx==0.10.*`.
 
     In particular, the 0.8 release switched HTTPX into focusing exclusively on
     providing an async client, in order to move the project forward, and help
index 735fa8f047d61cf92f98c29f24c6610e18dcbc13..919a040e06e4c9be6092c890a48da63eda2d9aaa 100644 (file)
@@ -1,3 +1,3 @@
 __title__ = "httpx"
 __description__ = "A next generation HTTP client, for Python 3."
-__version__ = "0.9.5"
+__version__ = "0.10.0"