]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Add SyncResponse.close
authorTom Christie <tom@tomchristie.com>
Tue, 23 Apr 2019 10:52:41 +0000 (11:52 +0100)
committerTom Christie <tom@tomchristie.com>
Tue, 23 Apr 2019 10:52:41 +0000 (11:52 +0100)
httpcore/sync.py

index 477edda3ab0dbaa86f0b12c3689db1ccec55419e..0cc502e1c588386c8e3986568c72f3dbc2e2a428 100644 (file)
@@ -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):