Enable Chunked Transfer Encoding in ASP.NET

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 11:27:05

In my experience, calling Response.Flush() will set the Transfer-Encoding to chunked. And actually I think setting Response.BufferedOutput will set it to chunked everytime Response.OutputStream is flushed.

That is unless a Content-Length has been set, then it just flushes the output without setting chunked.

If you edit the IIS configuration you can set the <asp enableChunkedEncoding /> element / attribute to set this.

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