We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 091c87a commit 5ec91d4Copy full SHA for 5ec91d4
httpx_retries/transport.py
@@ -58,6 +58,20 @@ def __init__(
58
self._sync_transport = httpx.HTTPTransport()
59
self._async_transport = httpx.AsyncHTTPTransport()
60
61
+ def close(self) -> None:
62
+ """
63
+ Closes this transport.
64
65
+ if self._sync_transport is not None:
66
+ self._sync_transport.close()
67
+
68
+ async def aclose(self) -> None:
69
70
71
72
+ if self._async_transport is not None:
73
+ await self._async_transport.aclose()
74
75
def handle_request(self, request: httpx.Request) -> httpx.Response:
76
"""
77
Sends an HTTP request, possibly with retries.
0 commit comments