big.ru 226 B

123456789101112131415
  1. class BigResponse
  2. def call(env)
  3. [200, {'Content-Type'=>'text/html'}, self]
  4. end
  5. def each
  6. yield "<pre>"
  7. 1024.times do
  8. yield(('.' * 1023) + "\n")
  9. end
  10. yield "</pre>"
  11. end
  12. end
  13. run BigResponse.new