(bytes []byte)
| 470 | } |
| 471 | |
| 472 | func (t *timeoutResponseWriter) Write(bytes []byte) (int, error) { |
| 473 | t.Lock() |
| 474 | defer t.Unlock() |
| 475 | |
| 476 | if !t.wroteHeader { |
| 477 | t.writeHeaderLocked(http.StatusOK) |
| 478 | } |
| 479 | |
| 480 | return t.buf.Write(bytes) |
| 481 | } |
| 482 | |
| 483 | func (t *timeoutResponseWriter) WriteHeader(statusCode int) { |
| 484 | t.Lock() |
no test coverage detected