class Google::Apis::Core::RawUploadCommand

Implementation of the raw upload protocol

def prepare!

Raises:
  • (Google::Apis::ClientError) - if upload source is invalid

Returns:
  • (void) -
def prepare!
  super
  self.body = upload_io
  header[UPLOAD_PROTOCOL_HEADER] = RAW_PROTOCOL
  header[UPLOAD_CONTENT_TYPE_HEADER] = upload_content_type
end