Skip to content
Myr

Close proxy dispatch classes on Client.close() (#826)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent 19555f6 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:httpx/_client.py+4 added
860 unmodified lines
861 )862863 def close(self) -> None:864 self.dispatch.close()865 for proxy in self.proxies.values():866 proxy.close()867868 def __enter__(self) -> "Client":869 return self870
518 unmodified lines
1389 )13901391 async def aclose(self) -> None:1392 await self.dispatch.close()1393 for proxy in self.proxies.values():1394 await proxy.close()13951396 async def __aenter__(self) -> "AsyncClient":1397 return self1398
70 unmodified lines