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

Method close

src/anthropic/_decoders/jsonl.py:104–109  ·  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

102 return copy(self).__decode__()
103
104 async def close(self) -> None:
105 """Close the response body stream.
106
107 This is called automatically if you consume the entire stream.
108 """
109 await self.http_response.aclose()
110
111 async def __decode__(self) -> AsyncIterator[_T]:
112 buf = b""

Callers

nothing calls this directly

Calls 1

acloseMethod · 0.45

Tested by

no test coverage detected