MCPcopy
hub / github.com/encode/httpx / aread

Method aread

tests/test_content.py:72–75  ·  view source on GitHub ↗
(self, chunk_size: int)

Source from the content-addressed store, hash-verified

70 self._content = content
71
72 async def aread(self, chunk_size: int) -> bytes:
73 chunk = self._content[self._idx : self._idx + chunk_size]
74 self._idx = self._idx + chunk_size
75 return chunk
76
77 async def __aiter__(self):
78 yield self._content # pragma: no cover

Calls

no outgoing calls

Tested by

no test coverage detected