Sha256: c7f956caaa679ca4b289e8bdf9708d5319f1bee61bccea575818a5522a9da339

Contents?: true

Size: 931 Bytes

Versions: 2

Compression:

Stored size: 931 Bytes

Contents

# frozen_string_literal: true

module Aws
  module Sigv4
    class Signature

      # @api private
      def initialize(options)
        options.each_pair do |attr_name, attr_value|
          send("#{attr_name}=", attr_value)
        end
      end

      # @return [Hash<String,String>] A hash of headers that should
      #   be applied to the HTTP request. Header keys are lower
      #   cased strings and may include the following:
      #
      #   * 'host'
      #   * 'x-amz-date'
      #   * 'x-amz-security-token'
      #   * 'x-amz-content-sha256'
      #   * 'authorization'
      #
      attr_accessor :headers

      # @return [String] For debugging purposes.
      attr_accessor :canonical_request

      # @return [String] For debugging purposes.
      attr_accessor :string_to_sign

      # @return [String] For debugging purposes.
      attr_accessor :content_sha256

      attr_accessor :extra

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aws-sigv4-1.4.1.crt lib/aws-sigv4/signature.rb
aws-sigv4-1.4.0.crt lib/aws-sigv4/signature.rb