class Async::HTTP::Protocol::HTTP1::Connection
def as_json(...)
def as_json(...) to_s end
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) @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) rescue => error # Bascially, any error will cause the connection to be closed: return nil end
def reusable?
def reusable? @persistent && @stream && !@stream.closed? end
def to_json(...)
def to_json(...) as_json.to_json(...) end
def to_s
def to_s "\#<#{self.class} negotiated #{@version}, #{@state}>" end
def viable?
def viable? self.idle? && @stream&.readable? end