Class: Aws::Plugins::S3Redirects

Inherits:
Seahorse::Client::Plugin show all
Defined in:
lib/aws-sdk-core/plugins/s3_redirects.rb

Defined Under Namespace

Classes: Handler

Instance Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

#add_options, #after_initialize, after_initialize, after_initialize_hooks, before_initialize, #before_initialize, before_initialize_hooks, handlers, option, options

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response, #handler_for, #new_handler

Instance Method Details

#add_handlers(handlers, config) ⇒ Object



28
29
30
31
32
33
# File 'lib/aws-sdk-core/plugins/s3_redirects.rb', line 28

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