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

Function httpRequest

printer_test.go:23–26  ·  view source on GitHub ↗
(body io.Reader)

Source from the content-addressed store, hash-verified

21}
22
23func httpRequest(body io.Reader) *http.Request {
24 req, _ := http.NewRequest("GET", "http://example.com", body)
25 return req
26}
27
28func httpResponse(body io.Reader) *http.Response {
29 resp := &http.Response{}

Callers 3

TestPrinter_CompactFunction · 0.85
TestPrinter_CurlFunction · 0.85
TestPrinter_DebugFunction · 0.85

Calls 1

NewRequestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…