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

Method aread

httpx/_models.py:974–980  ·  view source on GitHub ↗

Read and return the response content.

(self)

Source from the content-addressed store, hash-verified

972 self.stream.close()
973
974 async def aread(self) -> bytes:
975 """
976 Read and return the response content.
977 """
978 if not hasattr(self, "_content"):
979 self._content = b"".join([part async for part in self.aiter_bytes()])
980 return self._content
981
982 async def aiter_bytes(
983 self, chunk_size: int | None = None

Calls 2

aiter_bytesMethod · 0.95
joinMethod · 0.80