Module: HTTPX::Plugins::Upgrade
- Defined in:
- lib/httpx/plugins/upgrade.rb,
sig/plugins/upgrade.rbs
Overview
This plugin helps negotiating a new protocol from an HTTP/1.1 connection, via the Upgrade header.
Defined Under Namespace
Modules: ConnectionMethods, InstanceMethods, OptionsMethods, _UpgradeOptions, _Upgrader
Class Method Summary collapse
Class Method Details
.configure(klass) ⇒ void
This method returns an undefined value.
13 14 15 |
# File 'lib/httpx/plugins/upgrade.rb', line 13 def configure(klass) klass.plugin(:"upgrade/h2") end |
.extra_options(options) ⇒ Options & _UpgradeOptions
17 18 19 |
# File 'lib/httpx/plugins/upgrade.rb', line 17 def () .merge(upgrade_handlers: {}) end |