MCPcopy Create free account
hub / github.com/encode/starlette / __call__

Method __call__

benchmarks/streaming_response_benchmark.py:36–37  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

34 self.chunks = chunks
35
36 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
37 await StreamingResponse(iter_chunks(self.chunks))(scope, receive, send)
38
39
40async def iter_chunks(chunks: tuple[bytes, ...]) -> AsyncIterator[bytes]:

Callers

nothing calls this directly

Calls 2

StreamingResponseClass · 0.90
iter_chunksFunction · 0.85

Tested by

no test coverage detected