Options controls the dump behavior.
| 8 | |
| 9 | // Options controls the dump behavior. |
| 10 | type Options interface { |
| 11 | Output() io.Writer |
| 12 | RequestHeaderOutput() io.Writer |
| 13 | RequestBodyOutput() io.Writer |
| 14 | ResponseHeaderOutput() io.Writer |
| 15 | ResponseBodyOutput() io.Writer |
| 16 | RequestHeader() bool |
| 17 | RequestBody() bool |
| 18 | ResponseHeader() bool |
| 19 | ResponseBody() bool |
| 20 | Async() bool |
| 21 | Clone() Options |
| 22 | } |
| 23 | |
| 24 | func (d *Dumper) WrapResponseBodyReadCloser(rc io.ReadCloser) io.ReadCloser { |
| 25 | return &dumpResponseBodyReadCloser{rc, d} |
no outgoing calls
no test coverage detected
searching dependent graphs…