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

Method __call__

benchmarks/json_benchmark.py:53–55  ·  view source on GitHub ↗
(self, scope: Scope, receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

51
52class RequestJSONApp:
53 async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
54 content = await Request(scope, receive).json()
55 await send_result(send, str(len(content)).encode())
56
57
58class JSONResponseApp:

Callers

nothing calls this directly

Calls 3

RequestClass · 0.90
jsonMethod · 0.80
send_resultFunction · 0.70

Tested by

no test coverage detected