module HTTPX::Plugins::H2

  1. lib/httpx/plugins/upgrade/h2.rb

This plugin adds support for upgrading an HTTP/1.1 connection to HTTP/2 via an Upgrade: h2 response declaration

gitlab.com/os85/httpx/wikis/Connection-Upgrade#h2

Methods

Public Class

  1. call
  2. extra_options

Public Class methods

call(connection, _request, _response)
[show source]
   # File lib/httpx/plugins/upgrade/h2.rb
17 def call(connection, _request, _response)
18   connection.upgrade_to_h2
19 end
extra_options(options)
[show source]
   # File lib/httpx/plugins/upgrade/h2.rb
13 def extra_options(options)
14   options.merge(upgrade_handlers: options.upgrade_handlers.merge("h2" => self))
15 end