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

Method is_closed

src/opencode_ai/_response.py:113–120  ·  view source on GitHub ↗

Whether or not the response body has been closed. If this is False then there is response data that has not been read yet. You must either fully consume the response body or call `.close()` before discarding the response to prevent resource leaks.

(self)

Source from the content-addressed store, hash-verified

111
112 @property
113 def is_closed(self) -> bool:
114 """Whether or not the response body has been closed.
115
116 If this is False then there is response data that has not been read yet.
117 You must either fully consume the response body or call `.close()`
118 before discarding the response to prevent resource leaks.
119 """
120 return self.http_response.is_closed
121
122 @override
123 def __repr__(self) -> str:

Calls

no outgoing calls