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

Function echo

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

Echo request body back.

(request: Request)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

ResponseClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected