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

Method DontRedirect

Ghttp/http.go:157–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155}
156
157func (h *Http) DontRedirect() *Http {
158 h.HttpClient.CheckRedirect = func(req *http.Request, via []*http.Request) error {
159 return http.ErrUseLastResponse
160 }
161 return h
162}
163func (h *Http) DontKeepAlive() *Http {
164 h.HttpTransport.DisableKeepAlives = true
165 return h

Callers 3

TestPstFunction · 0.80
TestManyReqFunction · 0.80
TestNewReqFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestPstFunction · 0.64
TestManyReqFunction · 0.64
TestNewReqFunction · 0.64