Sha256: 012272d798080d0943f2664250365c5df1d46e440c21236f0ebcf1745bfa4a10
Contents?: true
Size: 699 Bytes
Versions: 149
Compression:
Stored size: 699 Bytes
Contents
# frozen_string_literal: true 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
149 entries across 149 versions & 1 rubygems