class Aws::Plugins::S3Md5s

@seahorse.client.option [Boolean] :compute_checksums (true)

When `true` a MD5 checksum will be computed for every request that
sends a body.  When `false`, MD5 checksums will only be computed
for operations that require them.  Checksum errors returned by Amazon
S3 are automatically retried up to `:retry_limit` times.

Constants

REQUIRED_OPERATIONS

Amazon S3 requires these operations to have an MD5 checksum

Public Instance Methods

add_handlers(handlers, config) click to toggle source
# File lib/aws-sdk-core/plugins/s3_md5s.rb, line 49
def add_handlers(handlers, config)
  # priority set low to ensure md5 is computed AFTER the request is
  # built but before it is signed
  handlers.add(Handler, {
    priority: 10,
    step: :build,
    operations: config.compute_checksums ? nil : REQUIRED_OPERATIONS,
  })
end