class Async::HTTP::Protocol::HTTP1::Response
def self.read(connection, request)
def self.read(connection, request) if parts = connection.read_response(request.method) self.new(connection, *parts) end end
def hijack!
def hijack! @connection.hijack! end
def hijack?
def hijack? @body.nil? end
def initialize(connection, version, status, reason, headers, body)
-
reason
(String
) -- HTTP response line reason, ignored.
def initialize(connection, version, status, reason, headers, body) @connection = connection protocol = connection.upgrade?(headers) super(version, status, headers, body, protocol) end