code: def body(self, value):
          
          self.__body = value
          if value is not None:
              # Avoid calling len() which cannot exceed 4GiB in 32-bit python.
              body_length = getattr(
                  self.__body, 'length', None) or len(self.__body)
              self.headers['content-length'] = str(body_length)
          else:
              self.headers.pop('content-length', None)
          # This line ensures we don't try to print large requests.
          if not isinstance(value, (type(None), six.string_types)):
              self.loggable_body = '<media body>'
docs: Sets the request body; handles logging and length measurement.