Class: Aws::S3::Plugins::Redirects

Inherits:
Seahorse::Client::Plugin show all
Defined in:
gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/redirects.rb

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, #before_initialize, before_initialize, option

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



35
36
37
38
39
40
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/plugins/redirects.rb', line 35

def add_handlers(handlers, config)
  if config.follow_redirects
    # we want to re-trigger request signing
    handlers.add(Handler, step: :sign, priority: 90)
  end
end