MCPcopy
hub / github.com/encode/starlette / exc_stream

Function exc_stream

tests/middleware/test_base.py:53–54  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

51
52
53def exc_stream(request: Request) -> StreamingResponse:
54 return StreamingResponse(_generate_faulty_stream())
55
56
57def _generate_faulty_stream() -> Generator[bytes, None, None]:

Callers

nothing calls this directly

Calls 2

StreamingResponseClass · 0.90
_generate_faulty_streamFunction · 0.85

Tested by

no test coverage detected