MCPcopy Index your code
hub / github.com/code-scan/Goal / Text

Method Text

Ghttp/response.go:111–125  ·  view source on GitHub ↗

string的返回值

()

Source from the content-addressed store, hash-verified

109
110// string的返回值
111func (h *Http) Text() (string, error) {
112 defer func() {
113 if r := recover(); r != nil {
114 log.Println("Recovered in Text : ", r)
115 }
116 }()
117 if h.err != nil {
118 return "", h.err
119 }
120 r, err := h.readAll()
121 if err != nil {
122 return "", err
123 }
124 return string(r), err
125}
126
127// byte的返回值
128func (h *Http) Byte() ([]byte, error) {

Callers 6

TestPstFunction · 0.80
TestManyReqFunction · 0.80
GetResultMethod · 0.80
GetResultMethod · 0.80
CheckLoginMethod · 0.80
LinesInFileFunction · 0.80

Calls 1

readAllMethod · 0.95

Tested by 2

TestPstFunction · 0.64
TestManyReqFunction · 0.64