class Async::HTTP::Protocol::HTTP10
Implements basic HTTP/1.1 request/response.
def persistent?(headers)
def persistent?(headers) if connection = headers[CONNECTION] return connection.include?(KEEP_ALIVE) else return false end end
def version
def version VERSION end
def write_body(body, chunked = false)
def write_body(body, chunked = false) # We don't support chunked encoding. super(body, chunked) end
def write_persistent_header
def write_persistent_header @stream.write("connection: keep-alive\r\n") if @persistent end