MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / close

Method close

src/anthropic/_decoders/jsonl.py:43–48  ·  view source on GitHub ↗

Close the response body stream. This is called automatically if you consume the entire stream.

(self)

Source from the content-addressed store, hash-verified

41 return copy(self).__decode__()
42
43 def close(self) -> None:
44 """Close the response body stream.
45
46 This is called automatically if you consume the entire stream.
47 """
48 self.http_response.close()
49
50 def __decode__(self) -> Iterator[_T]:
51 buf = b""

Callers 1

acloseMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected