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

Function send_result

benchmarks/json_benchmark.py:66–68  ·  view source on GitHub ↗
(send: Send, body: bytes)

Source from the content-addressed store, hash-verified

64
65
66async def send_result(send: Send, body: bytes) -> None:
67 await send({"type": "http.response.start", "status": 200, "headers": []})
68 await send({"type": "http.response.body", "body": body})
69
70
71REQUEST_APP = RequestJSONApp()

Callers 1

__call__Method · 0.70

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected