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

Method __exit__

httpx/_transports/default.py:221–228  ·  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

219 return self
220
221 def __exit__(
222 self,
223 exc_type: type[BaseException] | None = None,
224 exc_value: BaseException | None = None,
225 traceback: TracebackType | None = None,
226 ) -> None:
227 with map_httpcore_exceptions():
228 self._pool.__exit__(exc_type, exc_value, traceback)
229
230 def handle_request(
231 self,

Callers

nothing calls this directly

Calls 1

map_httpcore_exceptionsFunction · 0.85

Tested by

no test coverage detected