Module: HTTPX::Plugins::Upgrade::OptionsMethods

Defined in:
lib/httpx/plugins/upgrade.rb

Instance Method Summary collapse

Instance Method Details

#option_upgrade_handlers(value) ⇒ Object

Raises:

  • (TypeError)


23
24
25
26
27
# File 'lib/httpx/plugins/upgrade.rb', line 23

def option_upgrade_handlers(value)
  raise TypeError, ":upgrade_handlers must be a Hash" unless value.is_a?(Hash)

  value
end