Documentation
¶
Overview ¶
Package streamhttp shares HTTP streaming behavior across transport adapters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanFlush ¶
func CanFlush(writer http.ResponseWriter) bool
CanFlush checks the response-controller flush capability without writing a status line. It follows wrappers with the same bounded traversal as Flush.
func Flush ¶
func Flush(writer http.ResponseWriter) error
Flush preserves wrapper flush behavior, then checks an error-aware inner writer. Forge's http.Flusher wrappers cannot return socket errors to ResponseController. A second flush of the inner writer is empty on success and observes sticky I/O failures without bypassing compression or before-write callbacks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.