net/http.Response.Body (field)
36 uses
net/http (current package)
client.go#L283: if resp.Body == nil {
client.go#L297: resp.Body = io.NopCloser(strings.NewReader(""))
client.go#L300: resp.Body = &cancelTimerBody{
client.go#L302: rc: resp.Body,
client.go#L715: io.CopyN(io.Discard, resp.Body, maxBodySlurpSize)
client.go#L717: resp.Body.Close()
filetransport.go#L78: Body: pr,
h2_bundle.go#L8653: if res.Body == http2noBody && http2actualContentLength(req) == 0 {
h2_bundle.go#L9784: res.Body = http2noBody
h2_bundle.go#L9790: res.Body = http2missingBody{}
h2_bundle.go#L9792: res.Body = http2noBody
h2_bundle.go#L9799: res.Body = http2transportResponseBody{cs}
h2_bundle.go#L9805: res.Body = &http2gzipReader{body: res.Body}
response.go#L72: Body io.ReadCloser
response.go#L266: if r1.ContentLength == 0 && r1.Body != nil {
response.go#L269: n, err := r1.Body.Read(buf[:])
response.go#L276: r1.Body = NoBody
response.go#L279: r1.Body = struct {
response.go#L283: io.MultiReader(bytes.NewReader(buf[:1]), r.Body),
response.go#L284: r.Body,
response.go#L337: if r.Body != nil {
response.go#L338: r.Body.Close()
response.go#L350: _, ok := r.Body.(io.Writer)
transfer.go#L116: t.Body = rr.Body
transfer.go#L117: t.BodyCloser = rr.Body
transfer.go#L596: rr.Body = t.Body
transport.go#L2411: body: resp.Body,
transport.go#L2432: resp.Body = body
transport.go#L2434: resp.Body = &gzipReader{body: body}
transport.go#L2552: resp.Body = newReadWriteCloserBody(pc.br, pc.conn)
github.com/coder/websocket
dial.go#L147: respBody := resp.Body
dial.go#L148: resp.Body = nil
dial.go#L161: resp.Body = io.NopCloser(bytes.NewReader(b))
github.com/gotd/td/telegram/dcs
websocket.go#L35: if resp != nil && resp.Body != nil {
websocket.go#L36: _ = resp.Body.Close()
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |