Sha256: 85763ad5bec98eb5e211cae98915c9738c90d8f1c48d7b1b2fde0abc9c551c37
Contents?: true
Size: 706 Bytes
Versions: 81
Compression:
Stored size: 706 Bytes
Contents
# frozen_string_literal: true module Aws module S3Control 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 end
Version data entries
81 entries across 81 versions & 1 rubygems