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

Method __aexit__

httpx/_client.py:2008–2019  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None = None,
        exc_value: BaseException | None = None,
        traceback: TracebackType | None = None,
    )

Source from the content-addressed store, hash-verified

2006 return self
2007
2008 async def __aexit__(
2009 self,
2010 exc_type: type[BaseException] | None = None,
2011 exc_value: BaseException | None = None,
2012 traceback: TracebackType | None = None,
2013 ) -> None:
2014 self._state = ClientState.CLOSED
2015
2016 await self._transport.__aexit__(exc_type, exc_value, traceback)
2017 for proxy in self._mounts.values():
2018 if proxy is not None:
2019 await proxy.__aexit__(exc_type, exc_value, traceback)

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected