Printer is used to print requests and responses. CompactPrinter, DebugPrinter, and CurlPrinter implement this interface.
| 15 | // Printer is used to print requests and responses. |
| 16 | // CompactPrinter, DebugPrinter, and CurlPrinter implement this interface. |
| 17 | type Printer interface { |
| 18 | // Request is called before request is sent. |
| 19 | // It is allowed to read and close request body, or ignore it. |
| 20 | Request(*http.Request) |
| 21 | |
| 22 | // Response is called after response is received. |
| 23 | // It is allowed to read and close response body, or ignore it. |
| 24 | Response(*http.Response, time.Duration) |
| 25 | } |
| 26 | |
| 27 | // WebsocketPrinter is used to print writes and reads of WebSocket connection. |
| 28 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…