Echo request body back.
(request)
| 130 | |
| 131 | |
| 132 | async 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 | |
| 139 | async def headers_endpoint(request): |