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

Function simple_endpoint

tests/middleware/test_base.py:436–437  ·  tests/middleware/test_base.py::simple_endpoint
(_: Request)

Source from the content-addressed store, hash-verified

434 await self.app(scope, receive, send)
435
436 async def simple_endpoint(_: Request) -> PlainTextResponse:
437 return PlainTextResponse(background=BackgroundTask(sleep_and_set))
438
439 async def passthrough(
440 request: Request,

Callers

nothing calls this directly

Calls 2

PlainTextResponseClass · 0.90
BackgroundTaskClass · 0.90

Tested by

no test coverage detected