net/http.Response.Body (field)

239 uses

	net/http (current package)
		client.go#L270: 	if resp.Body == nil {
		client.go#L284: 		resp.Body = io.NopCloser(strings.NewReader(""))
		client.go#L287: 		resp.Body = &cancelTimerBody{
		client.go#L289: 			rc:            resp.Body,
		client.go#L699: 				io.CopyN(io.Discard, resp.Body, maxBodySlurpSize)
		client.go#L701: 			resp.Body.Close()
		filetransport.go#L59: 			Body:       pr,
		h2_bundle.go#L8550: 		res.Body = http2noBody
		h2_bundle.go#L8556: 	res.Body = http2transportResponseBody{cs}
		h2_bundle.go#L8563: 		res.Body = &http2gzipReader{body: res.Body}
		response.go#L72: 	Body io.ReadCloser
		response.go#L267: 	if r1.ContentLength == 0 && r1.Body != nil {
		response.go#L270: 		n, err := r1.Body.Read(buf[:])
		response.go#L277: 			r1.Body = NoBody
		response.go#L280: 			r1.Body = struct {
		response.go#L284: 				io.MultiReader(bytes.NewReader(buf[:1]), r.Body),
		response.go#L285: 				r.Body,
		response.go#L338: 	if r.Body != nil {
		response.go#L339: 		r.Body.Close()
		response.go#L351: 	_, ok := r.Body.(io.Writer)
		transfer.go#L113: 		t.Body = rr.Body
		transfer.go#L114: 		t.BodyCloser = rr.Body
		transfer.go#L587: 		rr.Body = t.Body
		transport.go#L2164: 			body: resp.Body,
		transport.go#L2185: 		resp.Body = body
		transport.go#L2187: 			resp.Body = &gzipReader{body: body}
		transport.go#L2312: 		resp.Body = newReadWriteCloserBody(pc.br, pc.conn)

	net/http/httptest
		recorder.go#L182: 		res.Body = io.NopCloser(bytes.NewReader(rw.Body.Bytes()))
		recorder.go#L184: 		res.Body = http.NoBody

	net/http/httputil
		dump.go#L311: 	save := resp.Body
		dump.go#L318: 			resp.Body = emptyBody
		dump.go#L320: 			resp.Body = failureToReadBody{}
		dump.go#L322: 	} else if resp.Body == nil {
		dump.go#L323: 		resp.Body = emptyBody
		dump.go#L325: 		save, resp.Body, err = drainBody(resp.Body)
		dump.go#L334: 	resp.Body = save
		persist.go#L413: 	cc.lastbody = resp.Body
		reverseproxy.go#L205: 		res.Body.Close()
		reverseproxy.go#L328: 	err = p.copyResponse(rw, res.Body, p.flushInterval(res))
		reverseproxy.go#L330: 		defer res.Body.Close()
		reverseproxy.go#L340: 	res.Body.Close() // close now, instead of defer, to populate res.Trailer
		reverseproxy.go#L557: 	backConn, ok := res.Body.(io.ReadWriteCloser)
		reverseproxy.go#L586: 	res.Body = nil // so res.Write only writes the headers; we have res.Body in backConn above

	cloud.google.com/go/compute/metadata
		metadata.go#L138: 		defer res.Body.Close()
		metadata.go#L311: 	defer res.Body.Close()
		metadata.go#L315: 	all, err := ioutil.ReadAll(res.Body)

	cloud.google.com/go/storage
		reader.go#L156: 				res.Body.Close()
		reader.go#L160: 				body, _ := ioutil.ReadAll(res.Body)
		reader.go#L161: 				res.Body.Close()
		reader.go#L175: 				res.Body.Close()
		reader.go#L184: 				_, _ = io.CopyN(ioutil.Discard, res.Body, seen)
		reader.go#L248: 	body := res.Body
		reader.go#L383: 		r.body = res.Body

	github.com/aws/aws-sdk-go/aws/client
		logger.go#L133: 		r.HTTPResponse.Body = &teeReaderCloser{
		logger.go#L134: 			Reader: io.TeeReader(r.HTTPResponse.Body, lw),
		logger.go#L135: 			Source: r.HTTPResponse.Body,

	github.com/aws/aws-sdk-go/aws/corehandlers
		handlers.go#L136: 		r.HTTPResponse.Body.Close()
		handlers.go#L148: 				Body:       ioutil.NopCloser(bytes.NewReader([]byte{})),
		handlers.go#L159: 			Body:       ioutil.NopCloser(bytes.NewReader([]byte{})),

	github.com/aws/aws-sdk-go/aws/credentials/endpointcreds
		provider.go#L181: 	defer r.HTTPResponse.Body.Close()
		provider.go#L184: 	if err := json.NewDecoder(r.HTTPResponse.Body).Decode(&out); err != nil {
		provider.go#L193: 	defer r.HTTPResponse.Body.Close()
		provider.go#L196: 	err := jsonutil.UnmarshalJSONError(&errOut, r.HTTPResponse.Body)

	github.com/aws/aws-sdk-go/aws/ec2metadata
		service.go#L180: 		defer r.HTTPResponse.Body.Close()
		service.go#L182: 		if _, err := io.Copy(&b, r.HTTPResponse.Body); err != nil {
		service.go#L210: 		defer r.HTTPResponse.Body.Close()
		service.go#L212: 		if _, err := io.Copy(&b, r.HTTPResponse.Body); err != nil {
		service.go#L225: 	defer r.HTTPResponse.Body.Close()
		service.go#L228: 	if _, err := io.Copy(&b, r.HTTPResponse.Body); err != nil {

	github.com/aws/aws-sdk-go/aws/request
		request.go#L567: 	if r.HTTPResponse != nil && r.HTTPResponse.Body != nil {
		request.go#L568: 		r.HTTPResponse.Body.Close()
		timeout_read_closer.go#L81: 				req.HTTPResponse.Body = &timeoutReadCloser{
		timeout_read_closer.go#L82: 					reader:   req.HTTPResponse.Body,

	github.com/aws/aws-sdk-go/private/protocol
		payload.go#L35: 			Body:       ioutil.NopCloser(r),
		unmarshal.go#L15: 	if r.HTTPResponse == nil || r.HTTPResponse.Body == nil {
		unmarshal.go#L19: 	io.Copy(ioutil.Discard, r.HTTPResponse.Body)
		unmarshal.go#L20: 	r.HTTPResponse.Body.Close()
		unmarshal_error.go#L46: 	defer r.HTTPResponse.Body.Close()

	github.com/aws/aws-sdk-go/private/protocol/query
		unmarshal.go#L21: 	defer r.HTTPResponse.Body.Close()
		unmarshal.go#L23: 		decoder := xml.NewDecoder(r.HTTPResponse.Body)
		unmarshal_error.go#L45: 	defer r.HTTPResponse.Body.Close()
		unmarshal_error.go#L48: 	err := xmlutil.UnmarshalXMLError(&respErr, r.HTTPResponse.Body)

	github.com/aws/aws-sdk-go/private/protocol/rest
		unmarshal.go#L69: 						defer r.HTTPResponse.Body.Close()
		unmarshal.go#L70: 						b, err := ioutil.ReadAll(r.HTTPResponse.Body)
		unmarshal.go#L78: 						defer r.HTTPResponse.Body.Close()
		unmarshal.go#L79: 						b, err := ioutil.ReadAll(r.HTTPResponse.Body)
		unmarshal.go#L90: 							payload.Set(reflect.ValueOf(r.HTTPResponse.Body))
		unmarshal.go#L93: 							b, err := ioutil.ReadAll(r.HTTPResponse.Body)
		unmarshal.go#L101: 							io.Copy(ioutil.Discard, r.HTTPResponse.Body)
		unmarshal.go#L102: 							r.HTTPResponse.Body.Close()

	github.com/go-git/go-git/v5/plumbing/transport/http
		common.go#L54: 	defer ioutil.CheckClose(res.Body, &err)
		common.go#L61: 	if err = ar.Decode(res.Body); err != nil {
		receive_pack.go#L48: 	r, err := ioutil.NonEmptyReader(res.Body)
		receive_pack.go#L68: 	rc := ioutil.NewReadCloser(r, res.Body)
		receive_pack.go#L101: 		_ = res.Body.Close()
		upload_pack.go#L58: 	r, err := ioutil.NonEmptyReader(res.Body)
		upload_pack.go#L67: 	rc := ioutil.NewReadCloser(r, res.Body)
		upload_pack.go#L99: 		_ = res.Body.Close()

	go.opencensus.io/plugin/ochttp
		client_stats.go#L67: 		if resp.Body == nil {
		client_stats.go#L70: 			track.body = resp.Body
		client_stats.go#L71: 			resp.Body = wrappedBody(track, resp.Body)
		trace.go#L97: 	bt := &bodyTracker{rc: resp.Body, span: span}
		trace.go#L98: 	resp.Body = wrappedBody(bt, resp.Body)

	golang.org/x/net/http2
		transport.go#L2047: 		res.Body = noBody
		transport.go#L2053: 	res.Body = transportResponseBody{cs}
		transport.go#L2060: 		res.Body = &gzipReader{body: res.Body}

	golang.org/x/oauth2/internal
		token.go#L236: 	body, err := ioutil.ReadAll(io.LimitReader(r.Body, 1<<20))
		token.go#L237: 	r.Body.Close()

	golang.org/x/oauth2/jwt
		jwt.go#L138: 	defer resp.Body.Close()
		jwt.go#L139: 	body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20))

	golang.org/x/pkgsite/cmd/prober
		main.go#L369: 	defer res.Body.Close()
		main.go#L376: 	body, err := ioutil.ReadAll(res.Body)

	golang.org/x/pkgsite/devtools/cmd/css
		main.go#L52: 	defer resp.Body.Close()
		main.go#L53: 	scanner := bufio.NewScanner(resp.Body)

	golang.org/x/pkgsite/internal/config
		config.go#L582: 	defer resp.Body.Close()
		config.go#L586: 	bytes, err := ioutil.ReadAll(resp.Body)

	golang.org/x/pkgsite/internal/index
		index.go#L66: 	defer r.Body.Close()
		index.go#L69: 	dec := json.NewDecoder(r.Body)

	golang.org/x/pkgsite/internal/proxy
		client.go#L167: 	defer res.Body.Close()
		client.go#L262: 	defer r.Body.Close()
		client.go#L266: 	return bodyFunc(r.Body)
		client.go#L286: 		data, err := ioutil.ReadAll(r.Body)

	golang.org/x/pkgsite/internal/source
		meta-tags.go#L57: 	defer resp.Body.Close()
		meta-tags.go#L58: 	return parseMeta(importPath, resp.Body)
		source.go#L249: 		resp.Body.Close()
		source.go#L511: 		res.Body.Close()

	google.golang.org/api/googleapi
		googleapi.go#L134: 	slurp, err := ioutil.ReadAll(res.Body)
		googleapi.go#L173: 	slurp, _ := ioutil.ReadAll(io.LimitReader(res.Body, 1<<20))
		googleapi.go#L314: 	if res == nil || res.Body == nil {
		googleapi.go#L324: 		_, err := res.Body.Read(buf)
		googleapi.go#L329: 	res.Body.Close()

	google.golang.org/api/idtoken
		cache.go#L54: 	defer resp.Body.Close()
		cache.go#L60: 	if err := json.NewDecoder(resp.Body).Decode(certResp); err != nil {

	google.golang.org/api/internal/gensupport
		resumable.go#L172: 			if resp != nil && resp.Body != nil {
		resumable.go#L173: 				resp.Body.Close()
		resumable.go#L214: 			if resp != nil && resp.Body != nil {
		resumable.go#L215: 				resp.Body.Close()
		resumable.go#L222: 			resp.Body.Close()
		send.go#L158: 		if resp != nil && resp.Body != nil {
		send.go#L159: 			resp.Body.Close()
		send.go#L171: 	return json.NewDecoder(res.Body).Decode(target)

	google.golang.org/api/internal/impersonate
		impersonate.go#L107: 	defer resp.Body.Close()
		impersonate.go#L108: 	body, err := ioutil.ReadAll(io.LimitReader(resp.Body, 1<<20))

	google.golang.org/api/storage/v1
		storage-gen.go#L2631: 		if res.Body != nil {
		storage-gen.go#L2632: 			res.Body.Close()
		storage-gen.go#L2799: 		if res.Body != nil {
		storage-gen.go#L2800: 			res.Body.Close()
		storage-gen.go#L2970: 		if res.Body != nil {
		storage-gen.go#L2971: 			res.Body.Close()
		storage-gen.go#L3134: 		if res.Body != nil {
		storage-gen.go#L3135: 			res.Body.Close()
		storage-gen.go#L3308: 		if res.Body != nil {
		storage-gen.go#L3309: 			res.Body.Close()
		storage-gen.go#L3670: 		if res.Body != nil {
		storage-gen.go#L3671: 			res.Body.Close()
		storage-gen.go#L3876: 		if res.Body != nil {
		storage-gen.go#L3877: 			res.Body.Close()
		storage-gen.go#L4092: 		if res.Body != nil {
		storage-gen.go#L4093: 			res.Body.Close()
		storage-gen.go#L4347: 		if res.Body != nil {
		storage-gen.go#L4348: 			res.Body.Close()
		storage-gen.go#L4557: 		if res.Body != nil {
		storage-gen.go#L4558: 			res.Body.Close()
		storage-gen.go#L4797: 		if res.Body != nil {
		storage-gen.go#L4798: 			res.Body.Close()
		storage-gen.go#L5026: 		if res.Body != nil {
		storage-gen.go#L5027: 			res.Body.Close()
		storage-gen.go#L5199: 		if res.Body != nil {
		storage-gen.go#L5200: 			res.Body.Close()
		storage-gen.go#L5441: 		if res.Body != nil {
		storage-gen.go#L5442: 			res.Body.Close()
		storage-gen.go#L5917: 		if res.Body != nil {
		storage-gen.go#L5918: 			res.Body.Close()
		storage-gen.go#L6086: 		if res.Body != nil {
		storage-gen.go#L6087: 			res.Body.Close()
		storage-gen.go#L6274: 		if res.Body != nil {
		storage-gen.go#L6275: 			res.Body.Close()
		storage-gen.go#L6450: 		if res.Body != nil {
		storage-gen.go#L6451: 			res.Body.Close()
		storage-gen.go#L6624: 		if res.Body != nil {
		storage-gen.go#L6625: 			res.Body.Close()
		storage-gen.go#L6942: 		if res.Body != nil {
		storage-gen.go#L6943: 			res.Body.Close()
		storage-gen.go#L7113: 		if res.Body != nil {
		storage-gen.go#L7114: 			res.Body.Close()
		storage-gen.go#L7286: 		if res.Body != nil {
		storage-gen.go#L7287: 			res.Body.Close()
		storage-gen.go#L7633: 		if res.Body != nil {
		storage-gen.go#L7634: 			res.Body.Close()
		storage-gen.go#L7825: 		if res.Body != nil {
		storage-gen.go#L7826: 			res.Body.Close()
		storage-gen.go#L8020: 		if res.Body != nil {
		storage-gen.go#L8021: 			res.Body.Close()
		storage-gen.go#L8208: 		if res.Body != nil {
		storage-gen.go#L8209: 			res.Body.Close()
		storage-gen.go#L8406: 		if res.Body != nil {
		storage-gen.go#L8407: 			res.Body.Close()
		storage-gen.go#L8640: 		if res.Body != nil {
		storage-gen.go#L8641: 			res.Body.Close()
		storage-gen.go#L8985: 		if res.Body != nil {
		storage-gen.go#L8986: 			res.Body.Close()
		storage-gen.go#L9541: 		res.Body.Close()
		storage-gen.go#L9558: 		if res.Body != nil {
		storage-gen.go#L9559: 			res.Body.Close()
		storage-gen.go#L9792: 		if res.Body != nil {
		storage-gen.go#L9793: 			res.Body.Close()
		storage-gen.go#L10121: 		if res.Body != nil {
		storage-gen.go#L10122: 			res.Body.Close()
		storage-gen.go#L10148: 		defer res.Body.Close()
		storage-gen.go#L10481: 		if res.Body != nil {
		storage-gen.go#L10482: 			res.Body.Close()
		storage-gen.go#L10801: 		if res.Body != nil {
		storage-gen.go#L10802: 			res.Body.Close()
		storage-gen.go#L11195: 		if res.Body != nil {
		storage-gen.go#L11196: 			res.Body.Close()
		storage-gen.go#L11496: 		if res.Body != nil {
		storage-gen.go#L11497: 			res.Body.Close()
		storage-gen.go#L11694: 		if res.Body != nil {
		storage-gen.go#L11695: 			res.Body.Close()
		storage-gen.go#L11957: 		if res.Body != nil {
		storage-gen.go#L11958: 			res.Body.Close()
		storage-gen.go#L12274: 		if res.Body != nil {
		storage-gen.go#L12275: 			res.Body.Close()
		storage-gen.go#L12485: 		if res.Body != nil {
		storage-gen.go#L12486: 			res.Body.Close()
		storage-gen.go#L12774: 		if res.Body != nil {
		storage-gen.go#L12775: 			res.Body.Close()
		storage-gen.go#L12973: 		if res.Body != nil {
		storage-gen.go#L12974: 			res.Body.Close()
		storage-gen.go#L13171: 		if res.Body != nil {
		storage-gen.go#L13172: 			res.Body.Close()
		storage-gen.go#L13345: 		if res.Body != nil {
		storage-gen.go#L13346: 			res.Body.Close()

	google.golang.org/grpc
		proxy.go#L106: 	defer resp.Body.Close()