class Aws::Plugins::S3Redirects::Handler
@api private
Public Instance Methods
call(context)
click to toggle source
# File lib/aws-sdk-core/plugins/s3_redirects.rb, line 14 def call(context) response = @handler.call(context) if context.http_response.status_code == 307 endpoint = context.http_response.headers['location'] context.http_request.endpoint = endpoint context.http_response.body.truncate(0) @handler.call(context) else response end end