Module: FIR::Http
- Includes:
- ApiTools::DefaultRestModule
- Included in:
- Util::ClassMethods
- Defined in:
- lib/fir/util/http.rb
Instance Method Summary collapse
Instance Method Details
#default_options ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fir/util/http.rb', line 11 def @default_options = .merge(timeout: 300) if ENV['FIR_TIMEOUT'] @default_options[:timeout] = ENV['FIR_TIMEOUT'].to_i end unless ENV['UPLOAD_VERIFY_SSL'] @default_options.merge!(other_base_execute_option: { verify_ssl: OpenSSL::SSL::VERIFY_NONE }) end end |
#old_default_options ⇒ Object
10 |
# File 'lib/fir/util/http.rb', line 10 alias |