Class: Aws::S3::Plugins::Md5s Private

Inherits:
Seahorse::Client::Plugin
  • Object
show all
Defined in:
lib/aws-sdk-s3/plugins/md5s.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

This plugin is effectively deprecated in favor of modeled httpChecksumRequired traits.

Defined Under Namespace

Classes: Handler

Constant Summary collapse

OPTIONAL_OPERATIONS =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

These operations allow Content MD5 but are not required by httpChecksumRequired. This list should not grow.

[
  :put_object,
  :upload_part
]

Instance Method Summary collapse

Instance Method Details

#add_handlers(handlers, config) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



73
74
75
76
77
78
79
80
81
82
# File 'lib/aws-sdk-s3/plugins/md5s.rb', line 73

def add_handlers(handlers, config)
  if config.compute_checksums
    # 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: OPTIONAL_OPERATIONS
    )
  end
end