You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Plugins::GlacierChecksums::Handler

Inherits:
Seahorse::Client::Handler show all
Defined in:
aws-sdk-core/lib/aws-sdk-core/plugins/glacier_checksums.rb

Constant Summary

HASH =
'X-Amz-Content-Sha256'
TREE_HASH =
'X-Amz-Sha256-Tree-Hash'

Instance Attribute Summary

Attributes inherited from Seahorse::Client::Handler

#handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Handler

#initialize, #inspect

Constructor Details

This class inherits a constructor from Seahorse::Client::Handler

Instance Method Details

#call(context) ⇒ Object



36
37
38
39
40
41
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/glacier_checksums.rb', line 36

def call(context)
  unless context.http_request.headers[TREE_HASH]
    populate_checksum_headers(context)
  end
  @handler.call(context)
end