class Async::HTTP::Protocol::HTTP1::Request

Public Class Methods

new(connection, authority, method, path, version, headers, body) click to toggle source
Calls superclass method
# File lib/async/http/protocol/http1/request.rb, line 36
def initialize(connection, authority, method, path, version, headers, body)
        @connection = connection
        
        protocol = connection.upgrade?(headers)
        
        super(nil, authority, method, path, version, headers, body, protocol)
end
read(connection) click to toggle source
# File lib/async/http/protocol/http1/request.rb, line 30
def self.read(connection)
        if parts = connection.read_request
                self.new(connection, *parts)
        end
end

Public Instance Methods

connection() click to toggle source
# File lib/async/http/protocol/http1/request.rb, line 44
def connection
        @connection
end
hijack!() click to toggle source
# File lib/async/http/protocol/http1/request.rb, line 52
def hijack!
        @connection.hijack!
end
hijack?() click to toggle source
# File lib/async/http/protocol/http1/request.rb, line 48
def hijack?
        true
end