(self, request: Request, call_next: Callable)
| 17 | self.hash_service = hash_service |
| 18 | |
| 19 | async def dispatch(self, request: Request, call_next: Callable) -> Response: |
| 20 | body = await request.body() |
| 21 | request_id = str(self.hash_service.uuid4()) |
| 22 | request.state.request_id = request_id |
| 23 | request.state.body = body |
| 24 | return await call_next(request) |