MCPcopy Index your code
hub / github.com/encode/starlette / _send

Function _send

tests/test_routing.py:703–707  ·  view source on GitHub ↗
(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["type"] == "lifespan.startup.failed": # 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