require 'rubygems' require 'bundler/setup' require 'reel' app = Rack::Builder.new do map '/' do run lambda { |env| body = Reel::Stream.new do |body| # sending a payload to make sure browsers will render chunks as received body << "#{' '*1024}\n" ('A'..'Z').each do |l| body << "