module HTTPX::Plugins::H2C::H2CParser

  1. lib/httpx/plugins/h2c.rb

Methods

Public Instance

  1. upgrade

Public Instance methods

upgrade(request, response)
[show source]
    # File lib/httpx/plugins/h2c.rb
109 def upgrade(request, response)
110   # skip checks, it is assumed that this is the first
111   # request in the connection
112   stream = @connection.upgrade
113 
114   # on_settings
115   handle_stream(stream, request)
116   @streams[request] = stream
117 
118   # clean up data left behind in the buffer, if the server started
119   # sending frames
120   data = response.read
121   @connection << data
122 end