module HTTPX::Plugins::Upgrade

  1. lib/httpx/plugins/upgrade.rb

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

gitlab.com/os85/httpx/wikis/Upgrade

Methods

Public Class

  1. configure
  2. extra_options

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