Public Instance methods
upgrade(request, response)
[show source]
# File lib/httpx/plugins/h2c.rb 99 def upgrade(request, response) 100 # skip checks, it is assumed that this is the first 101 # request in the connection 102 stream = @connection.upgrade 103 104 # on_settings 105 handle_stream(stream, request) 106 @streams[request] = stream 107 108 # clean up data left behind in the buffer, if the server started 109 # sending frames 110 data = response.read 111 @connection << data 112 end