]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Version 0.11.0 (#737) 0.11.0
authorTom Christie <tom@tomchristie.com>
Thu, 9 Jan 2020 09:35:56 +0000 (09:35 +0000)
committerGitHub <noreply@github.com>
Thu, 9 Jan 2020 09:35:56 +0000 (09:35 +0000)
* Version 0.11.0

* Update CHANGELOG.md

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update CHANGELOG.md

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update CHANGELOG.md

Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Bump status to beta

* Update release date to today

* Update changelog

* Use www.python-httpx.org domain

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
CHANGELOG.md
httpx/__version__.py
mkdocs.yml
setup.py

index 57ad60d5bb4fa4a0b27d6b606962891d91ea4950..81ef15ac43dc9101b418f6bef854ca58b06807b4 100644 (file)
@@ -4,6 +4,35 @@ 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.11.0 (January 9th, 2019)
+
+The 0.11 release reintroduces our sync support, so that `httpx` now supports both a standard thread-concurrency API, and an async API.
+
+Existing async `httpx` users that are upgrading to 0.11 should ensure that:
+
+* Async codebases should always use a client instance to make requests, instead of the top-level API.
+* The async client is named as `httpx.AsyncClient()`, instead of `httpx.Client()`.
+* 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.
+
+We believe the API is now pretty much stable, and are aiming for a 1.0 release sometime on or before April 2020.
+
+### Changed
+
+- Top level API such as `httpx.get(url, ...)`, `httpx.post(url, ...)`, `httpx.request(method, url, ...)` becomes synchronous.
+- Added `httpx.Client()` for synchronous clients, with `httpx.AsyncClient` being used for async clients.
+- Switched to `proxies=httpx.Proxy(...)` for proxy configuration.
+- Network connection errors are wrapped in `httpx.NetworkError`, rather than exposing lower-level exception types directly.
+
+### Removed
+
+- The `request.url.origin` property and `httpx.Origin` class are no longer available.
+- 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.
+- 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.
+
+### Fixed
+
+- Redirect loop detection matches against `(method, url)` rather than `url`. (Pull #734)
+
 ## 0.10.1 (December 31st, 2019)
 
 ### Fixed
index 7c6f5495f6e7754016e092020b414c15999724d8..769920d70bb63ae57edef6bd93661080df4c50f4 100644 (file)
@@ -1,3 +1,3 @@
 __title__ = "httpx"
 __description__ = "A next generation HTTP client, for Python 3."
-__version__ = "0.10.1"
+__version__ = "0.11.0"
index 4abb8248d6668bcfa0d13b33ce5c522fcdcd42d5..d2d22f9e6d9af6cd77185c0b42679d385bd218b7 100644 (file)
@@ -6,7 +6,7 @@ theme:
     name: 'material'
 
 repo_name: encode/httpx
-repo_url: https://github.com/encode/httpx
+repo_url: https://www.python-httpx.org/
 edit_uri: ""
 
 nav:
index 2f313bdd9f6e1d28ead0bd9cccf5dfeea7f13689..4d925246dad89175f94fdb5686dd4df273fd1938 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -62,7 +62,7 @@ setup(
         "urllib3==1.*",
     ],
     classifiers=[
-        "Development Status :: 3 - Alpha",
+        "Development Status :: 4 - Beta",
         "Environment :: Web Environment",
         "Intended Audience :: Developers",
         "License :: OSI Approved :: BSD License",