class Async::HTTP::Protocol::HTTP10
def receive_requests
def receive_requests while request = Request.new(*self.read_request) status, headers, body = yield request write_response(request.version, status, headers, body) break unless keep_alive?(request.headers) && keep_alive?(headers) end end