MCPcopy
hub / github.com/encode/httpx / aclose

Method aclose

httpx/_client.py:1978–1988  ·  view source on GitHub ↗

Close transport and proxies.

(self)

Source from the content-addressed store, hash-verified

1976 )
1977
1978 async def aclose(self) -> None:
1979 """
1980 Close transport and proxies.
1981 """
1982 if self._state != ClientState.CLOSED:
1983 self._state = ClientState.CLOSED
1984
1985 await self._transport.aclose()
1986 for proxy in self._mounts.values():
1987 if proxy is not None:
1988 await proxy.aclose()
1989
1990 async def __aenter__(self: U) -> U:
1991 if self._state != ClientState.UNOPENED:

Callers 7

test_async_proxy_closeFunction · 0.95
acloseMethod · 0.45
streamMethod · 0.45
sendMethod · 0.45
_send_handling_authMethod · 0.45

Calls 1

valuesMethod · 0.45