net/http.Request.ContentLength (field)

48 uses

	net/http (current package)
		client.go#L669: 				req.ContentLength = ireq.ContentLength
		h2_bundle.go#L5432: 	st.declBodyBytes = req.ContentLength
		h2_bundle.go#L5596: 				req.ContentLength = int64(cl)
		h2_bundle.go#L5598: 				req.ContentLength = 0
		h2_bundle.go#L5601: 			req.ContentLength = -1
		h2_bundle.go#L5604: 			b: &http2dataBuffer{expected: req.ContentLength},
		h2_bundle.go#L7524: 	if req.ContentLength != 0 {
		h2_bundle.go#L7525: 		return req.ContentLength
		request.go#L198: 	ContentLength int64
		request.go#L890: 			req.ContentLength = int64(v.Len())
		request.go#L897: 			req.ContentLength = int64(v.Len())
		request.go#L904: 			req.ContentLength = int64(v.Len())
		request.go#L925: 		if req.GetBody != nil && req.ContentLength == 0 {
		request.go#L1106: 		req.ContentLength = -1
		request.go#L1430: 	if r.ContentLength != 0 {
		request.go#L1431: 		return r.ContentLength
		server.go#L1344: 	if w.req.ContentLength != 0 && !w.closeAfterReply {
		server.go#L1927: 			if req.ProtoAtLeast(1, 1) && req.ContentLength != 0 {
		server.go#L3422: 	if r.ContentLength != 0 {
		transfer.go#L82: 		if rr.ContentLength != 0 && rr.Body == nil {
		transfer.go#L83: 			return nil, fmt.Errorf("http: Request.ContentLength=%d with nil Body", rr.ContentLength)
		transfer.go#L580: 		rr.ContentLength = t.ContentLength

	net/http/httptest
		httptest.go#L57: 			req.ContentLength = int64(v.Len())
		httptest.go#L59: 			req.ContentLength = int64(v.Len())
		httptest.go#L61: 			req.ContentLength = int64(v.Len())
		httptest.go#L63: 			req.ContentLength = -1

	net/http/httputil
		dump.go#L68: 	if req.ContentLength != 0 {
		dump.go#L69: 		return req.ContentLength
		reverseproxy.go#L234: 	if req.ContentLength == 0 {

	github.com/aws/aws-sdk-go/aws/corehandlers
		handlers.go#L48: 		r.HTTPRequest.ContentLength = length
		handlers.go#L51: 		r.HTTPRequest.ContentLength = 0

	github.com/prometheus/client_golang/prometheus/promhttp
		instrument_server.go#L316: 	if r.ContentLength != -1 {
		instrument_server.go#L317: 		s += int(r.ContentLength)

	go.opencensus.io/plugin/ochttp
		client_stats.go#L51: 	} else if req.ContentLength > 0 {
		client_stats.go#L52: 		track.reqSize = req.ContentLength
		server.go#L135: 	} else if r.ContentLength > 0 {
		server.go#L137: 			r.ContentLength, -1)
		server.go#L162: 	} else if r.ContentLength > 0 {
		server.go#L163: 		track.reqSize = r.ContentLength

	golang.org/x/net/http2
		server.go#L1877: 	st.declBodyBytes = req.ContentLength
		server.go#L2041: 				req.ContentLength = int64(cl)
		server.go#L2043: 				req.ContentLength = 0
		server.go#L2046: 			req.ContentLength = -1
		server.go#L2049: 			b: &dataBuffer{expected: req.ContentLength},
		transport.go#L1021: 	if req.ContentLength != 0 {
		transport.go#L1022: 		return req.ContentLength

	google.golang.org/api/internal/gensupport
		resumable.go#L79: 	req.ContentLength = size