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

Method GetRespHead

Ghttp/response.go:59–64  ·  view source on GitHub ↗

GetRespHead 获取返回头

(key string)

Source from the content-addressed store, hash-verified

57
58// GetRespHead 获取返回头
59func (h *Http) GetRespHead(key string) string {
60 if h.HttpResponse != nil {
61 return h.HttpResponse.Header.Get(key)
62 }
63 return ""
64}
65func (h *Http) readNull() ([]byte, error) {
66 _, err := io.Copy(io.Discard, h.HttpResponse.Body)
67 return nil, err

Callers 2

TestPstFunction · 0.80
TestManyReqFunction · 0.80

Calls 1

GetMethod · 0.80

Tested by 2

TestPstFunction · 0.64
TestManyReqFunction · 0.64