DebugPrinter implements Printer and WebsocketPrinter. Uses net/http/httputil to dump both requests and responses. Also prints all websocket messages.
| 93 | // Uses net/http/httputil to dump both requests and responses. |
| 94 | // Also prints all websocket messages. |
| 95 | type DebugPrinter struct { |
| 96 | logger Logger |
| 97 | body bool |
| 98 | } |
| 99 | |
| 100 | // NewDebugPrinter returns a new DebugPrinter given a logger and body |
| 101 | // flag. If body is true, request and response body is also printed. |
nothing calls this directly
no outgoing calls
no test coverage detected