From: Tom Christie Date: Sat, 7 Dec 2019 09:07:33 +0000 (+0000) Subject: Add 'fork' to auto backend (#614) X-Git-Tag: 0.9.3^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f55db15a01ce311b9d4229d9707aa58043a8eaed;p=thirdparty%2Fhttpx.git Add 'fork' to auto backend (#614) * Add 'fork' to auto backend * Version 0.9.3 --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 5caa14ad..179aed16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ 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.9.3 (December 7th, 2019) + +### Fixed + +- Fixed HTTP/2 with autodetection backend. (Pull #614) + ## 0.9.2 (December 7th, 2019) * Released due to packaging build artifact. diff --git a/httpx/__version__.py b/httpx/__version__.py index 64beab18..2ab85571 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.9.2" +__version__ = "0.9.3" diff --git a/httpx/concurrency/auto.py b/httpx/concurrency/auto.py index 3b57e567..ed85806e 100644 --- a/httpx/concurrency/auto.py +++ b/httpx/concurrency/auto.py @@ -51,3 +51,12 @@ class AutoBackend(ConcurrencyBackend): def create_event(self) -> BaseEvent: return self.backend.create_event() + + async def fork( + self, + coroutine1: typing.Callable, + args1: typing.Sequence, + coroutine2: typing.Callable, + args2: typing.Sequence, + ) -> None: + return await self.backend.fork(coroutine1, args1, coroutine2, args2)