Class: Aws::Glacier::Plugins::Checksums::Handler Private

Inherits:
Seahorse::Client::Handler
  • Object
show all
Defined in:
lib/aws-sdk-glacier/plugins/checksums.rb

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.

Constant Summary collapse

HASH =

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.

'X-Amz-Content-Sha256'
TREE_HASH =

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.

'X-Amz-Sha256-Tree-Hash'

Instance Method Summary collapse

Instance Method Details

#call(context) ⇒ 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.



39
40
41
42
43
44
# File 'lib/aws-sdk-glacier/plugins/checksums.rb', line 39

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