(r io.Reader)
| 187 | } |
| 188 | |
| 189 | func (rr *responseRecorder) ReadFrom(r io.Reader) (int64, error) { |
| 190 | rr.WriteHeader(http.StatusOK) |
| 191 | var n int64 |
| 192 | var err error |
| 193 | if rr.stream { |
| 194 | n, err = rr.ResponseWriterWrapper.ReadFrom(r) |
| 195 | } else { |
| 196 | n, err = rr.buf.ReadFrom(r) |
| 197 | } |
| 198 | |
| 199 | rr.size += int(n) |
| 200 | return n, err |
| 201 | } |
| 202 | |
| 203 | // Status returns the status code that was written, if any. |
| 204 | func (rr *responseRecorder) Status() int { |
nothing calls this directly
no test coverage detected