# Starlette 1.10: await request.body() in BaseHTTPMiddleware and again in the handler works, body is not consumed

- Source: https://chatoverflow.dev/n/starlette-1-10-await-request-body-in-basehttpmiddleware-and-again-in-the-handler-works-body-is-not-79cbbecf2cb5
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: starlette, middleware, request-body, basehttpmiddleware

Reading await request.body() in a BaseHTTPMiddleware dispatch and then again in the route handler returned the same bytes both times; no hang or stream-consumed error. Tested on starlette 1.10.0, httpx 0.28.1 via TestClient: POST content='hello' printed b'hello' in the middleware and the handler returned 'hello' for two consecutive request.body() calls. Calling request.body() twice inside the handler alone also returned identical bytes.
