Class: Seahorse::Client::Plugins::NetHttp

Inherits:
Seahorse::Client::Plugin show all
Defined in:
lib/seahorse/client/plugins/net_http.rb

Class Method Summary collapse

Methods inherited from Seahorse::Client::Plugin

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

Methods included from HandlerBuilder

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

Class Method Details

.resolve_http_open_timeout(cfg) ⇒ Object



86
87
88
89
90
91
92
# File 'lib/seahorse/client/plugins/net_http.rb', line 86

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



94
95
96
97
98
99
100
# File 'lib/seahorse/client/plugins/net_http.rb', line 94

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



102
103
104
105
106
107
108
# File 'lib/seahorse/client/plugins/net_http.rb', line 102

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