MCPcopy Index your code
hub / github.com/labstack/echo / Flush

Method Flush

response.go:81–86  ·  view source on GitHub ↗

Flush implements the http.Flusher interface to allow an HTTP handler to flush buffered data to the client. See [http.Flusher](https://golang.org/pkg/net/http/#Flusher)

()

Source from the content-addressed store, hash-verified

79// buffered data to the client.
80// See [http.Flusher](https://golang.org/pkg/net/http/#Flusher)
81func (r *Response) Flush() {
82 err := http.NewResponseController(r.ResponseWriter).Flush()
83 if err != nil && errors.Is(err, http.ErrNotSupported) {
84 panic(fmt.Errorf("echo: response writer %T does not support flushing (http.Flusher interface)", r.ResponseWriter))
85 }
86}
87
88// Hijack implements the http.Hijacker interface to allow an HTTP handler to
89// take over the connection.

Callers 3

TestResponse_FlushFunction · 0.95
TestResponse_FlushPanicsFunction · 0.95
FlushMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestResponse_FlushFunction · 0.76
TestResponse_FlushPanicsFunction · 0.76