slow.ru 240 B

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