class Google::Apis::Core::RawUploadCommand

Implementation of the raw upload protocol

Constants

RAW_PROTOCOL

Public Instance Methods

prepare!() click to toggle source

Ensure the content is readable and wrapped in an {{Google::Apis::Core::UploadIO}} instance.

@return [void] @raise [Google::Apis::ClientError] if upload source is invalid

# File lib/google/apis/core/upload.rb, line 90
def prepare!
  super
  self.body = upload_io
  header[UPLOAD_PROTOCOL_HEADER] = RAW_PROTOCOL
  header[UPLOAD_CONTENT_TYPE_HEADER] = upload_content_type
end