(request: Request, exc: BadBodyException)
| 48 | |
| 49 | |
| 50 | async def handler_that_reads_body(request: Request, exc: BadBodyException) -> JSONResponse: |
| 51 | body = await request.body() |
| 52 | return JSONResponse(status_code=422, content={"body": body.decode()}) |
| 53 | |
| 54 | |
| 55 | class HandledExcAfterResponse: |
nothing calls this directly
no test coverage detected