(p []byte)
| 180 | } |
| 181 | |
| 182 | func (w *pipeResponseWriter) Write(p []byte) (int, error) { |
| 183 | // net/http semantics: an implicit 200 OK on first Write if the handler |
| 184 | // did not call WriteHeader explicitly. |
| 185 | w.WriteHeader(http.StatusOK) |
| 186 | return w.body.Write(p) |
| 187 | } |
| 188 | |
| 189 | // Flush is a no-op: pipe writes are already synchronous with the reader, so |
| 190 | // each Write is observed as soon as the reader consumes it. We satisfy |
nothing calls this directly
no test coverage detected