lib/httpx/plugins/h2c.rb in httpx-0.5.1 vs lib/httpx/plugins/h2c.rb in httpx-0.6.0
- old
+ new
@@ -23,11 +23,11 @@
return super unless valid_h2c_upgrade_request?(upgrade_request)
upgrade_request.headers.add("connection", "upgrade")
upgrade_request.headers.add("connection", "http2-settings")
upgrade_request.headers["upgrade"] = "h2c"
- upgrade_request.headers["http2-settings"] = HTTP2::Client.settings_header(upgrade_request.options.http2_settings)
+ upgrade_request.headers["http2-settings"] = HTTP2Next::Client.settings_header(upgrade_request.options.http2_settings)
wrap { send_requests(*upgrade_request, h2c_options).first }
responses = send_requests(*requests, h2c_options)
return responses.first if responses.size == 1
@@ -109,10 +109,10 @@
super("http/1.1")
end
end
module FrameBuilder
- include HTTP2
+ include HTTP2Next
module_function
def settings_value(settings)
frame = Framer.new.generate(type: :settings, stream: 0, payload: settings)