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

Class ASGIResponseStream

httpx/_transports/asgi.py:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54
55class ASGIResponseStream(AsyncByteStream):
56 def __init__(self, body: list[bytes]) -> None:
57 self._body = body
58
59 async def __aiter__(self) -> typing.AsyncIterator[bytes]:
60 yield b"".join(self._body)
61
62
63class ASGITransport(AsyncBaseTransport):

Callers 1

handle_async_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected