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)
()
| 79 | // buffered data to the client. |
| 80 | // See [http.Flusher](https://golang.org/pkg/net/http/#Flusher) |
| 81 | func (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. |
no outgoing calls