Method: HTTPX::Plugins::Upgrade::OptionsMethods#option_upgrade_handlers

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

#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