From: Tom Christie Date: Tue, 23 Apr 2019 10:52:41 +0000 (+0100) Subject: Add SyncResponse.close X-Git-Tag: 0.2.0^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03080623f0fe2850ae4e6cc7600583bf08d06b8a;p=thirdparty%2Fhttpx.git Add SyncResponse.close --- diff --git a/httpcore/sync.py b/httpcore/sync.py index 477edda3..0cc502e1 100644 --- a/httpcore/sync.py +++ b/httpcore/sync.py @@ -38,6 +38,9 @@ class SyncResponse: except StopAsyncIteration as exc: break + def close(self) -> None: + return asyncio_run(self._response.close()) + class SyncClient: def __init__(self, client: Client):