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