Class: Seahorse::Client::Plugins::NetHttp
Class Method Summary
collapse
#add_handlers, #add_options, #after_initialize, after_initialize, after_initialize_hooks, #before_initialize, before_initialize, before_initialize_hooks, handlers, literal, option, options
#handle, #handle_request, #handle_response, #handler_for, #new_handler
Class Method Details
.resolve_http_open_timeout(cfg) ⇒ Object
77
78
79
80
81
82
83
|
# File 'lib/seahorse/client/plugins/net_http.rb', line 77
def self.resolve_http_open_timeout(cfg)
default_mode_value =
if cfg.respond_to?(:defaults_mode_config_resolver)
cfg.defaults_mode_config_resolver.resolve(:http_open_timeout)
end
default_mode_value || 15
end
|
.resolve_http_read_timeout(cfg) ⇒ Object
85
86
87
88
89
90
91
|
# File 'lib/seahorse/client/plugins/net_http.rb', line 85
def self.resolve_http_read_timeout(cfg)
default_mode_value =
if cfg.respond_to?(:defaults_mode_config_resolver)
cfg.defaults_mode_config_resolver.resolve(:http_read_timeout)
end
default_mode_value || 60
end
|
.resolve_ssl_timeout(cfg) ⇒ Object
93
94
95
96
97
98
99
|
# File 'lib/seahorse/client/plugins/net_http.rb', line 93
def self.resolve_ssl_timeout(cfg)
default_mode_value =
if cfg.respond_to?(:defaults_mode_config_resolver)
cfg.defaults_mode_config_resolver.resolve(:ssl_timeout)
end
default_mode_value || nil
end
|