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

Method read

httpx/_models.py:876–882  ·  httpx/_models.py::Response.read

Read and return the response content.

(self)

Source from the content-addressed store, hash-verified

874 self.stream = UnattachedStream()
875
876 def read(self) -> bytes:
877 class="st">"""
878 Read and return the response content.
879 class="st">"""
880 if not hasattr(self, class="st">"_content"):
881 self._content = bclass="st">"".join(self.iter_bytes())
882 return self._content
883
884 def iter_bytes(self, chunk_size: int | None = None) -> typing.Iterator[bytes]:
885 class="st">"""

Callers 9

__init__Method · 0.95
test_zstd_multiframeFunction · 0.95
test_readFunction · 0.95
test_empty_readFunction · 0.95

Calls 2

iter_bytesMethod · 0.95
joinMethod · 0.80

Tested by 8

test_zstd_multiframeFunction · 0.76
test_readFunction · 0.76
test_empty_readFunction · 0.76