class Async::HTTP::Protocol::HTTP1::Connection
def close
def close Async.logger.debug(self) {"Closing connection"} super end
def connected?
def connected? @stream&.connected? end
def http1?
def http1? true end
def http2?
def http2? false end
def initialize(stream, version)
def initialize(stream, version) super(stream) @version = version end
def multiplex
def multiplex 1 end
def peer
def peer @stream.io end
def read_line
def read_line @stream.read_until(CRLF) or raise EOFError, "Could not read line!" end
def read_line?
def read_line? @stream.read_until(CRLF) rescue Errno::ECONNRESET return nil end
def reusable?
def reusable? @stream && !@stream.closed? # !(self.closed? || @stream.closed?) end