MCPcopy Index your code
hub / github.com/gavv/httpexpect / DebugPrinter

Struct DebugPrinter

printer.go:95–98  ·  view source on GitHub ↗

DebugPrinter implements Printer and WebsocketPrinter. Uses net/http/httputil to dump both requests and responses. Also prints all websocket messages.

Source from the content-addressed store, hash-verified

93// Uses net/http/httputil to dump both requests and responses.
94// Also prints all websocket messages.
95type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected