Permalink
Browse files

update examples/loop.ru

  • Loading branch information...
1 parent ae1dabc commit 361b91ddae38f621b9fdfcdf1e437e74b9c1426b @jch jch committed May 25, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 examples/loop.ru
View
@@ -11,10 +11,18 @@ run lambda {|env|
timer.cancel
close
end
- chunk "Chunky\n"
+ chunk "\nChunky"
count += 1
end
end
+
+ before_chunk do |chunks|
+ chunks.map(&:upcase)
+ end
+
+ before_close do
+ chunk "\nBye"
+ end
end
- [200, {}, []]
+ [200, {}, ['Hello']]
}

0 comments on commit 361b91d

Please sign in to comment.