You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# To test this example with the curl command-line tool, you'll need to add the `--no-buffer` flag or set the COMMENT size to the required 4096 bytes in order for curl to start streaming.
15
15
# curl http://localhost:9292/ --no-buffer
16
16
17
-
runlambda{|env|
17
+
runlambda{|env|
18
18
task=Async::Task.current
19
19
body=Async::HTTP::Body::Writable.new
20
20
@@ -30,7 +30,7 @@ run lambda {|env|
30
30
count.downto(1)do |i|
31
31
task.annotate"bottles of beer #{i}"
32
32
33
-
Console.logger.info(body){"#{bottles(i)} of beer on the wall..."}
33
+
Console.info(body){"#{bottles(i)} of beer on the wall..."}
34
34
body.write("<p>#{bottles(i)} of beer on the wall, ")
0 commit comments