Module: HTTPX::Plugins::Upgrade

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

Overview

This plugin helps negotiating a new protocol from an HTTP/1.1 connection, via the Upgrade header.

gitlab.com/os85/httpx/wikis/Upgrade

Defined Under Namespace

Modules: ConnectionMethods, InstanceMethods, OptionsMethods

Class Method Summary collapse

Class Method Details

.configure(klass) ⇒ Object



13
14
15
# File 'lib/httpx/plugins/upgrade.rb', line 13

def configure(klass)
  klass.plugin(:"upgrade/h2")
end

.extra_options(options) ⇒ Object



17
18
19
# File 'lib/httpx/plugins/upgrade.rb', line 17

def extra_options(options)
  options.merge(upgrade_handlers: {})
end