class Async::HTTP::Protocol::HTTP1::Response
def self.read(connection, request)
def self.read(connection, request) while parts = connection.read_response(request.method) response = self.new(connection, *parts) if response.final? return response end end end
def connection
def connection @connection end
def hijack!
def hijack! @connection.hijack! end
def hijack?
def hijack? @body.nil? end
def initialize(connection, version, status, reason, headers, body)
def initialize(connection, version, status, reason, headers, body) @connection = connection @reason = reason protocol = headers.delete(UPGRADE) super(version, status, headers, body, protocol) end