Sha256: 6c7ea893dfe44ff46eb7c0d8c2b9fc543523d11538bbd3630d87f6793a38fb98
Contents?: true
Size: 668 Bytes
Versions: 92
Compression:
Stored size: 668 Bytes
Contents
module Aws module S3 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
92 entries across 92 versions & 1 rubygems