From 03080623f0fe2850ae4e6cc7600583bf08d06b8a Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Tue, 23 Apr 2019 11:52:41 +0100 Subject: [PATCH] Add SyncResponse.close --- httpcore/sync.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- 2.47.3