diff options
Diffstat (limited to 'examples/the_metal.rb')
-rw-r--r-- | examples/the_metal.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/the_metal.rb b/examples/the_metal.rb index 94b4ef0..b88a665 100644 --- a/examples/the_metal.rb +++ b/examples/the_metal.rb @@ -5,13 +5,13 @@ require 'the_metal' # based on README.markdown in git://github.com/tenderlove/the_metal.git class Application - def serve req, res + def call req, res # TODO: to support persistent connections, we must have Content-Length # when write_head is called or have Transfer-Encoding: chunked # (in which case res.write must chunk for us) res.write_head 200, 'Content-Type' => 'text/plain' res.write "Hello World\n" - res.close + res.finish end end |