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

Class ByteStream

httpx/_content.py:31–39  ·  httpx/_content.py::ByteStream

Source from the content-addressed store, hash-verified

29
30
31class ByteStream(AsyncByteStream, SyncByteStream):
32 def __init__(self, stream: bytes) -> None:
33 self._stream = stream
34
35 def __iter__(self) -> Iterator[bytes]:
36 yield self._stream
37
38 async def __aiter__(self) -> AsyncIterator[bytes]:
39 yield self._stream
40
41
42class IteratorByteStream(SyncByteStream):

Callers 9

encode_contentFunction · 0.85
encode_urlencoded_dataFunction · 0.85
encode_textFunction · 0.85
encode_htmlFunction · 0.85
encode_jsonFunction · 0.85
encode_requestFunction · 0.85
encode_responseFunction · 0.85
readMethod · 0.85
areadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected