class Async::HTTP::Protocol::HTTP2::Server

def each

def each
	while request = @requests.dequeue
		@count += 1
		
		# We need to close the stream if the user code blows up while generating a response:
		response = begin
			response = yield(request)
		rescue
			request.stream.send_reset_stream(::Protocol::HTTP2::INTERNAL_ERROR)
			
			Async.logger.error(request) {$!}
		else
			request.send_response(response)
		end
	end
end