(status int)
| 172 | } |
| 173 | |
| 174 | func (w *pipeResponseWriter) WriteHeader(status int) { |
| 175 | w.once.Do(func() { |
| 176 | w.status = status |
| 177 | w.frozenHeader = w.header.Clone() |
| 178 | close(w.gotHeaders) |
| 179 | }) |
| 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 |