Class AWS::S3::Client
In: lib/aws/s3/client/xml.rb
lib/aws/s3/client.rb
Parent: Core::Client

Client class for Amazon Simple Storage Service (S3).

Methods

Included Modules

DataOptions Core::UriEscape Validators

Classes and Modules

Module AWS::S3::Client::Validators
Module AWS::S3::Client::XML
Class AWS::S3::Client::V20060301

Constants

API_VERSION = '2006-03-01'
XMLNS = "http://s3.amazonaws.com/doc/#{API_VERSION}/"
EMPTY_BODY_ERRORS = { 304 => Errors::NotModified, 403 => Errors::Forbidden, 400 => Errors::BadRequest, 404 => Errors::NoSuchKey, }   @api private
CACHEABLE_REQUESTS = Set[]   @api private

External Aliases

create_bucket -> put_bucket
put_bucket_acl -> set_bucket_acl
put_object_acl -> set_object_acl
list_objects -> get_bucket

Protected Class methods

Protected Instance methods

S3 may return a 200 response code in response to complete_multipart_upload and then start streaming whitespace until it knows the final result. At that time it sends an XML message with success or failure.

@param [String] possible_xml @return [Boolean] Returns `true` if the given string is a valid xml

  document.

Previously the access control policy could be specified via :acl as a string or an object that responds to to_xml. The prefered method now is to pass :access_control_policy an xml document.

There are a few of s3 requests that can generate empty bodies and yet still be errors. These return empty bodies to comply with the HTTP spec. We have to detect these errors specially.

[Validate]