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

Function endpoint_with_pathsend

tests/middleware/test_gzip.py:174–176  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

172 events: list[Message] = []
173
174 async def endpoint_with_pathsend(request: Request) -> FileResponse:
175 _ = await request.body()
176 return FileResponse(path)
177
178 app = Starlette(
179 routes=[Route("/", endpoint=endpoint_with_pathsend)],

Callers

nothing calls this directly

Calls 2

FileResponseClass · 0.90
bodyMethod · 0.80

Tested by

no test coverage detected