Class: Async::Aws::HttpPlugin

Inherits:
Seahorse::Client::Plugin
  • Object
show all
Defined in:
lib/async/aws/http_plugin.rb

Instance Method Summary collapse

Instance Method Details

#add_handlers(handlers, config) ⇒ void

This method returns an undefined value.

Parameters:

  • handlers (Seahorse::Client::HandlerList)
  • _config (Seahorse::Client::Configuration)


27
28
29
30
31
# File 'lib/async/aws/http_plugin.rb', line 27

def add_handlers(handlers, config)
  return if config.respond_to?(:stub_responses) && config.stub_responses

  handlers.add(Async::Aws::Handler, step: :send)
end

#add_options(config) ⇒ void

This method returns an undefined value.

Parameters:

  • config (Seahorse::Client::Configuration)


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/async/aws/http_plugin.rb', line 8

def add_options(config)
  Seahorse::Client::Plugins::NetHttp.new.add_options(config)

  config.add_option(:async_http_connection_limit, 10)
  config.add_option(:async_http_force_accept_encoding, true)
  config.add_option(:async_http_body_warn_bytes, 5 * 1024 * 1024)
  config.add_option(:async_http_max_buffer_bytes, 5 * 1024 * 1024)
  config.add_option(:async_http_idle_timeout, 30)
  config.add_option(:async_http_header_timeout, nil)
  config.add_option(:async_http_total_timeout, nil)
  config.add_option(:async_http_max_cached_clients, 100)
  config.add_option(:async_http_streaming_uploads, :auto)
  config.add_option(:async_http_fallback, :net_http)
  config.add_option(:async_http_client_cache, nil)
end