This will allow users to control if they want the body consumed or not.
Generally, if you are reading the entire request body into a Pydantic model you no longer care about the body.
So by default (as we currently do) we will consume the body.
But this will give users the option to not consume the body, at the cost of performance and memory consumption.
This will allow users to control if they want the body consumed or not. Generally, if you are reading the entire request body into a Pydantic model you no longer care about the body. So by default (as we currently do) we will consume the body. But this will give users the option to not consume the body, at the cost of performance and memory consumption.
Expected usage: