How to flush HttpListener response stream?
问题 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 that this is a limitation of HttpListener itself. Anyone knows exactly how to flush response stream of HttpListener (may be with reflection or additional P/Invokes)? Update: You can't http stream anything if you don't have a flush option or ability to define buffer size. 回答1: Flush only works in most of the System.Net