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

Function echo

tests/docker/asgi_framework_compat/frameworks/starlette_app/app.py:132–136  ·  view source on GitHub ↗

Echo request body back.

(request)

Source from the content-addressed store, hash-verified

130
131
132async def echo(request):
133 """Echo request body back."""
134 body = await request.body()
135 content_type = request.headers.get("content-type", "application/octet-stream")
136 return Response(content=body, media_type=content_type)
137
138
139async def headers_endpoint(request):

Callers

nothing calls this directly

Calls 2

ResponseClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected