class Async::HTTP::Protocol::HTTP1::Connection

def close

def close
	Async.logger.debug(self) {"Closing connection"}
	
	@stream.close
end

def connected?

Can we use this connection to make requests?
def connected?
	@stream.connected?
end

def hijack!

Returns:
  • (Async::Wrapper) - the underlying non-blocking IO.
def hijack!
	@persistent = false
	
	@stream.flush
	
	return @stream.io
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_chunked_body

def read_chunked_body
	Body::Chunked.new(self)
end

def read_fixed_body(length)

def read_fixed_body(length)
	Body::Fixed.new(@stream, length)
end

def read_line

def read_line
	@stream.read_until(CRLF) or raise EOFError, "Could not read line"
end

def read_remainder_body

def read_remainder_body
	Body::Remainder.new(@stream)
end

def read_tunnel_body

def read_tunnel_body
	read_remainder_body
end

def reusable?

def reusable?
	!@stream.closed?
	# !(self.closed? || @stream.closed?)
end