ASP.NET Blog | Re-reading ASP.Net Core request bodies with EnableBuffering()

added by DotNetKicks
3/27/2019 9:29:18 PM

2 Kicks, 110 Views

In some scenarios there's a need to read the request body multiple times. Some examples include Logging the raw requests to replay in load test environment Middleware that read the request body multiple times to process it Usually Request.Body does not support rewinding,