This plugin adds support for upgrading an HTTP/1.1 connection to HTTP/2 via an Upgrade: h2 response declaration
Classes and Modules
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