MCPcopy
hub / github.com/gin-gonic/gin / Flush

Method Flush

response_writer.go:129–134  ·  view source on GitHub ↗

Flush implements the http.Flusher interface.

()

Source from the content-addressed store, hash-verified

127
128// Flush implements the http.Flusher interface.
129func (w *responseWriter) Flush() {
130 w.WriteHeaderNow()
131 if f, ok := w.ResponseWriter.(http.Flusher); ok {
132 f.Flush()
133 }
134}
135
136func (w *responseWriter) Pusher() (pusher http.Pusher) {
137 if pusher, ok := w.ResponseWriter.(http.Pusher); ok {

Callers 3

TestResponseWriterFlushFunction · 0.95
TestResponseWriterHijackFunction · 0.80
StreamMethod · 0.80

Calls 1

WriteHeaderNowMethod · 0.95

Tested by 2

TestResponseWriterFlushFunction · 0.76
TestResponseWriterHijackFunction · 0.64