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

Method close

src/opencode_ai/_response.py:344–349  ·  view source on GitHub ↗

Close the response and release the connection. Automatically called if the response body is read to completion.

(self)

Source from the content-addressed store, hash-verified

342 return self.http_response.json()
343
344 def close(self) -> None:
345 """Close the response and release the connection.
346
347 Automatically called if the response body is read to completion.
348 """
349 self.http_response.close()
350
351 def iter_bytes(self, chunk_size: int | None = None) -> Iterator[bytes]:
352 """

Callers 2

__exit__Method · 0.45
__aexit__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected