MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / close

Method close

src/opencode_ai/_base_client.py:871–879  ·  view source on GitHub ↗

Close the underlying HTTPX client. The client will *not* be usable after this.

(self)

Source from the content-addressed store, hash-verified

869 return self._client.is_closed
870
871 def close(self) -> None:
872 """Close the underlying HTTPX client.
873
874 The client will *not* be usable after this.
875 """
876 # If an error is thrown while constructing a client, self._client
877 # may not be present
878 if hasattr(self, "_client"):
879 self._client.close()
880
881 def __enter__(self: _T) -> _T:
882 return self

Callers 3

__exit__Method · 0.95
__del__Method · 0.45
requestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected