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

Method __call__

tests/test_exceptions.py:52–55  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

50
51class HandledExcAfterResponse:
52 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
53 response = PlainTextResponse("OK", status_code=200)
54 await response(scope, receive, send)
55 raise HTTPException(status_code=406)
56
57
58router = Router(

Callers

nothing calls this directly

Calls 2

PlainTextResponseClass · 0.90
HTTPExceptionClass · 0.90

Tested by

no test coverage detected