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

Function _send

tests/test_routing.py:703–707  ·  tests/test_routing.py::_send
(message: Message)

Source from the content-addressed store, hash-verified

701
702 async def app(scope: Scope, receive: Receive, send: Send) -> None:
703 async def _send(message: Message) -> None:
704 nonlocal startup_failed
705 if message[class="st">"type"] == class="st">"lifespan.startup.failed": class="cm"># pragma: no branch
706 startup_failed = True
707 return await send(message)
708
709 await router(scope, receive, _send)
710

Callers

nothing calls this directly

Calls 1

sendFunction · 0.70

Tested by

no test coverage detected