Skip to content
Myr

Version 0.10.0 (#691)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* 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

authored by Tom Christie · committed by GitHub · parent 6a1ee0e · Browse files · 4 files+29 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Florimond Manca <florimond.manca@gmail.com>

Diff stats

4 files+29 added−3 removed

  • other:+29 added−3 removed

4 files+29 added−3 removed

modified:docs/index.md+1 added-1 removed
modified:httpx/__version__.py+1 added-1 removed
1__title__ = "httpx"2__description__ = "A next generation HTTP client, for Python 3."3__version__ = "0.9.5"3__version__ = "0.10.0"
modified:CHANGELOG.md+26 added
2 unmodified lines
3All 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/).67## 0.10.0 (December 29th, 2019)89The 0.10.0 release makes some changes that will allow us to support both sync and async interfaces.1011In particular with streaming responses the `response.read()` method becomes `response.aread()`, and the `response.close()` method becomes `response.aclose()`.1213If following redirects explicitly the `response.next()` method becomes `response.anext()`.1415### Fixed1617- End HTTP/2 streams immediately on no-body requests, rather than sending an empty body message. (Pull #682)18- Improve typing for `Response.request`: switch from `Optional[Request]` to `Request`. (Pull #666)19- `Response.elapsed` now reflects the entire download time. (Pull #687, #692)2021### Changed2223- Added `AsyncClient` as a synonym for `Client`. (Pull #680)24- Switch to `response.aread()` for conditionally reading streaming responses. (Pull #674)25- Switch to `response.aclose()` and `client.aclose()` for explicit closing. (Pull #674, #675)26- Switch to `response.anext()` for resolving the next redirect response. (Pull #676)2728### Removed2930- 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)31- Removed the undocumented `request.read()`, since end users should not require it.3233## 0.9.5 (December 20th, 2019)3435### Fixed36
239 unmodified lines
modified:README.md+1 added-1 removed
22 unmodified lines
2324**Note**: *HTTPX should still be considered in alpha. We'd love early users and feedback,25but would strongly recommend pinning your dependencies to the latest median26release, so that you're able to properly review API changes between package27updates. Currently you should be using `httpx==0.9.*`.*27updates. Currently you should be using `httpx==0.10.*`.*2829*In particular, the 0.8 release switched HTTPX into focusing exclusively on30providing an async client, in order to move the project forward, and help31us [change our approach to providing sync+async support][sync-support]. If
102 unmodified lines