MCPcopy Create free account
hub / github.com/gavv/httpexpect / NewDebugPrinter

Function NewDebugPrinter

printer.go:102–104  ·  view source on GitHub ↗

NewDebugPrinter returns a new DebugPrinter given a logger and body flag. If body is true, request and response body is also printed.

(logger Logger, body bool)

Source from the content-addressed store, hash-verified

100// NewDebugPrinter returns a new DebugPrinter given a logger and body
101// flag. If body is true, request and response body is also printed.
102func NewDebugPrinter(logger Logger, body bool) DebugPrinter {
103 return DebugPrinter{logger, body}
104}
105
106// Request implements Printer.Request.
107func (p DebugPrinter) Request(req *http.Request) {

Callers 2

TestPrinter_DebugFunction · 0.85
TestPrinter_PanicsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestPrinter_DebugFunction · 0.68
TestPrinter_PanicsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…