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

Method StatusCode

Ghttp/response.go:171–181  ·  view source on GitHub ↗

statuscode

()

Source from the content-addressed store, hash-verified

169
170// statuscode
171func (h Http) StatusCode() int {
172 defer func() {
173 if err := recover(); err != nil {
174 log.Println(err)
175 }
176 }()
177 if h.HttpResponse != nil {
178 return h.HttpResponse.StatusCode
179 }
180 return -1
181}
182func (h *Http) RespCookie() string {
183 defer func() {
184 if r := recover(); r != nil {

Callers 2

TestHeadFunction · 0.95
TestPstFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestHeadFunction · 0.76
TestPstFunction · 0.64