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

Function echo

tests/docker/asgi_framework_compat/frameworks/quart_app/app.py:86–92  ·  view source on GitHub ↗

Echo request body back.

()

Source from the content-addressed store, hash-verified

84
85@app.route("/echo", methods=["POST"])
86async def echo():
87 """Echo request body back."""
88 body = await request.get_data()
89 content_type = request.headers.get("content-type", "application/octet-stream")
90 response = await make_response(body)
91 response.headers["Content-Type"] = content_type
92 return response
93
94
95@app.route("/headers")

Callers

nothing calls this directly

Calls 3

make_responseFunction · 0.50
get_dataMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected