What is the alternate of HttpRequest.EnableRewind() in ASP.NET Core 3.0?

岁酱吖の 提交于 2020-01-14 07:06:08

问题


BufferingHelper.EnableRewind();

Above is an extension method for HttpRequest object in ASP.NET Core 2.2. It is no more there in ASP.NET Core 3.0 (atleast with this name). I want to know it's alternate in ASP.NET Core 3.0. I am not sure if

HttpRequestRewindExtensions.EnableBuffering();

is the alternate.


回答1:


The alternate is HttpRequestRewindExtensions.EnableBuffering(), indeed. You can see here that internally it just calls EnableRewind().



来源:https://stackoverflow.com/questions/57407472/what-is-the-alternate-of-httprequest-enablerewind-in-asp-net-core-3-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!