How can I set Transfer-Encoding to chunked, explicitly or implicitly, in an ASP.NET response?

后端 未结 4 1789
暖寄归人
暖寄归人 2020-12-15 07:26

Can I simply set the Transfer-Encoding header?

Will calling Response.Flush() at some point cause this to occur implicitly?


<
4条回答
  •  情歌与酒
    2020-12-15 08:18

    Response.Buffer = False

    This will set HTTP Header "Tranfer-Encoding:Chuncked" and send the response each callled response.write

提交回复
热议问题