net/http.Response.ContentLength (field)

19 uses

	net/http (current package)
		client.go#L281: 		if resp.ContentLength > 0 && req.Method != "HEAD" {
		client.go#L282: 			return nil, didTimeout, fmt.Errorf("http: RoundTripper implementation (%T) returned a *Response with content length %d but a nil Body", rt, resp.ContentLength)
		client.go#L698: 			if resp.ContentLength == -1 || resp.ContentLength <= maxBodySlurpSize {
		filetransport.go#L95: 		pr.res.ContentLength = -1
		h2_bundle.go#L8535: 		res.ContentLength = -1
		h2_bundle.go#L8538: 				res.ContentLength = int64(cl)
		h2_bundle.go#L8554: 	cs.bufPipe = http2pipe{b: &http2dataBuffer{expected: res.ContentLength}}
		h2_bundle.go#L8555: 	cs.bytesRemain = res.ContentLength
		h2_bundle.go#L8562: 		res.ContentLength = -1
		response.go#L78: 	ContentLength int64
		response.go#L267: 	if r1.ContentLength == 0 && r1.Body != nil {
		response.go#L279: 			r1.ContentLength = -1
		response.go#L293: 	if r1.ContentLength == -1 && !r1.Close && r1.ProtoAtLeast(1, 1) && !chunked(r1.TransferEncoding) && !r1.Uncompressed {
		response.go#L316: 	if r1.ContentLength == 0 && !chunked(r1.TransferEncoding) && !contentLengthAlreadySent && bodyAllowedForStatus(r.StatusCode) {
		transfer.go#L115: 		t.ContentLength = rr.ContentLength
		transfer.go#L588: 		rr.ContentLength = t.ContentLength
		transport.go#L2123: 		hasBody := rc.req.Method != "HEAD" && resp.ContentLength != 0
		transport.go#L2190: 			resp.ContentLength = -1