The MemoryOutputWriter keeps the response in memory so it can read multiple times.
| 8 | // The MemoryOutputWriter keeps the response in memory so it can read |
| 9 | // multiple times. |
| 10 | type MemoryOutputWriter struct { |
| 11 | statusCode int |
| 12 | status string |
| 13 | protocol string |
| 14 | header map[string][]string |
| 15 | body []byte |
| 16 | } |
| 17 | |
| 18 | func (w *MemoryOutputWriter) WriteResponse(response ResponseInfo) error { |
| 19 | w.statusCode = response.StatusCode |
nothing calls this directly
no outgoing calls
no test coverage detected