Sha256: 66526530e50fcb8a25479ee127997a93ec478a579bd2146faad789f6b9df2c3f
Contents?: true
Size: 553 Bytes
Versions: 997
Compression:
Stored size: 553 Bytes
Contents
module Aws module Rest class Handler < Seahorse::Client::Handler def call(context) Rest::Request::Builder.new.apply(context) resp = @handler.call(context) resp.on(200..299) { |response| Response::Parser.new.apply(response) } resp.on(200..599) { |response| apply_request_id(context) } resp end private def apply_request_id(context) h = context.http_response.headers context[:request_id] = h['x-amz-request-id'] || h['x-amzn-requestid'] end end end end
Version data entries
997 entries across 997 versions & 2 rubygems