MCPcopy Create free account
hub / github.com/code-scan/Goal / TestNewReq

Function TestNewReq

tests/http_test.go:121–131  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

119}
120
121func TestNewReq(t *testing.T) {
122 log.Println("Ghttp test new")
123 h := Ghttp.New().Get("https://httpbin.org/get").
124 DontKeepAlive().
125 SetProxy("http://127.0.0.1:1234").
126 DontRedirect().
127 Execute()
128 // Text()
129 log.Println("err: ", h.Error())
130
131}

Callers

nothing calls this directly

Calls 7

NewFunction · 0.92
ExecuteMethod · 0.80
DontRedirectMethod · 0.80
SetProxyMethod · 0.80
DontKeepAliveMethod · 0.80
GetMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected