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

Method Request

printer.go:78–86  ·  view source on GitHub ↗

Request implements Printer.Request.

(req *http.Request)

Source from the content-addressed store, hash-verified

76
77// Request implements Printer.Request.
78func (p CurlPrinter) Request(req *http.Request) {
79 if req != nil {
80 cmd, err := http2curl.GetCurlCommand(req)
81 if err != nil {
82 panic(err)
83 }
84 p.logger.Logf("%s", cmd.String())
85 }
86}
87
88// Response implements Printer.Response.
89func (CurlPrinter) Response(*http.Response, time.Duration) {

Callers 1

TestPrinter_CurlFunction · 0.95

Calls 2

LogfMethod · 0.65
StringMethod · 0.45

Tested by 1

TestPrinter_CurlFunction · 0.76