class Google::Apis::Core::RawUploadCommand
Implementation of the raw upload protocol
Constants
- RAW_PROTOCOL
Public Instance Methods
Source
# 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
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
Calls superclass method
Google::Apis::Core::BaseUploadCommand#prepare!