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

Interface Printer

printer.go:17–25  ·  view source on GitHub ↗

Printer is used to print requests and responses. CompactPrinter, DebugPrinter, and CurlPrinter implement this interface.

Source from the content-addressed store, hash-verified

15// Printer is used to print requests and responses.
16// CompactPrinter, DebugPrinter, and CurlPrinter implement this interface.
17type 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//

Callers 8

TestExpect_RequestsFunction · 0.65
TestExpect_BuildersFunction · 0.65
TestExpect_MatchersFunction · 0.65
TestExpect_AdaptersFunction · 0.65
retryRequestMethod · 0.65
IrisHandlerFunction · 0.65
retryRequestMethod · 0.65

Implementers 5

CompactPrinterprinter.go
CurlPrinterprinter.go
DebugPrinterprinter.go
mockPrintere2e/printer_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…