()
| 831 | } |
| 832 | |
| 833 | func newRespReadWriteFlusher() *respReadWriteFlusher { |
| 834 | pr, pw := io.Pipe() |
| 835 | return &respReadWriteFlusher{ |
| 836 | Reader: pr, |
| 837 | w: pw, |
| 838 | headers: make(http.Header), |
| 839 | hasStatus: make(chan struct{}), |
| 840 | } |
| 841 | } |
| 842 | |
| 843 | func (rrw *respReadWriteFlusher) Write(buf []byte) (int, error) { |
| 844 | rrw.WriteHeader(http.StatusOK) |
no outgoing calls
no test coverage detected