Sha256: 29d4646d9d241fdc03f80b7880a57065c89779b2025b31beefc38bc44601e76a

Contents?: true

Size: 614 Bytes

Versions: 769

Compression:

Stored size: 614 Bytes

Contents

module Aws
  module Plugins

    # Support S3 host id, more information, see:
    # http://docs.aws.amazon.com/AmazonS3/latest/dev/troubleshooting.html#sdk-request-ids
    #
    # This plugin adds :host_id for s3 responses when available
    # @api private
    class S3HostId < Seahorse::Client::Plugin

      class Handler < Seahorse::Client::Handler

        def call(context)
          response = @handler.call(context)
          h = context.http_response.headers
          context[:s3_host_id] = h['x-amz-id-2']
          response
        end

      end

      handler(Handler, step: :sign)

    end
  end
end

Version data entries

769 entries across 769 versions & 1 rubygems

Version Path
aws-sdk-core-2.11.632 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.631 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.630 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.629 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.628 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.627 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.626 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.625 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.624 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.623 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.622 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.621 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.620 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.619 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.618 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.617 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.616 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.615 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.614 lib/aws-sdk-core/plugins/s3_host_id.rb
aws-sdk-core-2.11.613 lib/aws-sdk-core/plugins/s3_host_id.rb