MCPcopy
hub / github.com/benoitc/gunicorn / large

Function large

tests/docker/asgi_framework_compat/frameworks/fastapi_app/app.py:177–181  ·  view source on GitHub ↗

Large response body.

(size: int = 1024)

Source from the content-addressed store, hash-verified

175
176@app.get("/large")
177async def large(size: int = 1024):
178 """Large response body."""
179 # Cap at 10MB for safety
180 size = min(size, 10 * 1024 * 1024)
181 return Response(content=b"x" * size, media_type="application/octet-stream")
182
183
184@app.get("/delay")

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.85

Tested by

no test coverage detected