How to flush HttpListener response stream?

前端 未结 2 748
野趣味
野趣味 2020-12-28 23:48

HttpListener gives you response stream, but calling flush means nothing (and from sources it\'s clear, because it\'s actually doing nothing). Digging inside HTTP API shows t

2条回答
  •  执念已碎
    2020-12-29 00:26

    Flush only works in most of the System.Net namespace when Transfer-Encoding is set to Chuncked, else the whole request is returned and Flush really does nothing. At least this is what I have experienced while working with HttpWebResponse.

提交回复
热议问题