()
| 96 | } |
| 97 | |
| 98 | func (d flusherDelegator) Flush() { |
| 99 | // If applicable, call WriteHeader here so that observeWriteHeader is |
| 100 | // handled appropriately. |
| 101 | if !d.wroteHeader { |
| 102 | d.WriteHeader(http.StatusOK) |
| 103 | } |
| 104 | d.ResponseWriter.(http.Flusher).Flush() |
| 105 | } |
| 106 | |
| 107 | func (d hijackerDelegator) Hijack() (net.Conn, *bufio.ReadWriter, error) { |
| 108 | return d.ResponseWriter.(http.Hijacker).Hijack() |