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

Method __exit__

httpx/_client.py:1293–1304  ·  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

1291 return self
1292
1293 def __exit__(
1294 self,
1295 exc_type: type[BaseException] | None = None,
1296 exc_value: BaseException | None = None,
1297 traceback: TracebackType | None = None,
1298 ) -> None:
1299 self._state = ClientState.CLOSED
1300
1301 self._transport.__exit__(exc_type, exc_value, traceback)
1302 for transport in self._mounts.values():
1303 if transport is not None:
1304 transport.__exit__(exc_type, exc_value, traceback)
1305
1306
1307class AsyncClient(BaseClient):

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.45

Tested by

no test coverage detected