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

Method readNull

Ghttp/response.go:65–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 return ""
64}
65func (h *Http) readNull() ([]byte, error) {
66 _, err := io.Copy(io.Discard, h.HttpResponse.Body)
67 return nil, err
68}
69func (h *Http) readAll() ([]byte, error) {
70 //获取一个新的,如果不存在则会调用new创建
71 buffer := pool.Get().(*bytes.Buffer)

Callers 1

CloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected