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

Function large

tests/docker/asgi_framework_compat/frameworks/litestar_app/app.py:146–150  ·  view source on GitHub ↗

Large response body.

(size: int = 1024)

Source from the content-addressed store, hash-verified

144
145@get("/large")
146async def large(size: int = 1024) -> Response:
147 """Large response body."""
148 # Cap at 10MB for safety
149 size = min(size, 10 * 1024 * 1024)
150 return Response(content=b"x" * size, media_type="application/octet-stream")
151
152
153@get("/delay")

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.85

Tested by

no test coverage detected