dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.44k stars 10.02k forks source link

Consolidate IRequestBodyPipeFeature and IHttpRequestFeature.Body #12620

Open Tratcher opened 5 years ago

Tratcher commented 5 years ago

For 3.0.0-preview8 we consolidated all of the response body APIs onto the new IHttpResponseBodyFeature. We should do something similar for request bodies to make them more reliable to shim.

New API: IHttpRequestBodyFeature

Obsolete: IRequestBodyPipeFeature IHttpRequestFeature.Body

https://github.com/aspnet/AspNetCore/blob/master/src/Http/Http.Features/src/IRequestBodyPipeFeature.cs https://github.com/aspnet/AspNetCore/blob/master/src/Http/Http/src/Features/RequestBodyPipeFeature.cs

This isn't as high a priority as it was for response bodies because there are fewer APIs, the auto-adapters work better for the read scenario, and it's less common to shim the request body.

davidfowl commented 5 years ago

@anurse I just realized we left the IRequestBodyPipeFeature which is super unfortunate. Is there any chance we can rectify this? It leaves us into a bit of limbo as that feature will likely be deprecated in a later release...

ghost commented 2 years ago

Thanks for contacting us.

We're moving this issue to the .NET 8 Planning milestone for future evaluation / consideration. We would like to keep this around to collect more feedback, which can help us with prioritizing this work. We will re-evaluate this issue, during our next planning meeting(s). If we later determine, that the issue has no community involvement, or it's very rare and low-impact issue, we will close it - so that the team can focus on more important and high impact issues. To learn more about what to expect next and how this issue will be handled you can read more about our triage process here.