class Async::HTTP::Protocol::HTTP1::Connection
def concurrency
def concurrency 1 end
def http1?
def http1? true end
def http2?
def http2? false end
def initialize(stream, version)
def initialize(stream, version) super(stream) @ready = true @version = version 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) end
def reusable?
def reusable? @ready && @persistent && @stream && !@stream.closed? end
def viable?
def viable? @ready && @stream&.connected? end