This plugin helps negotiating a new protocol from an HTTP/1.1 connection, via the Upgrade
header.
Classes and Modules
Public Class methods
configure(klass)
[show source]
# File lib/httpx/plugins/upgrade.rb 13 def configure(klass) 14 klass.plugin(:"upgrade/h2") 15 end
extra_options(options)
[show source]
# File lib/httpx/plugins/upgrade.rb 17 def extra_options(options) 18 options.merge(upgrade_handlers: {}) 19 end