* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / sample / webrick / hello.rb
blob4d026768182aa7d65a707b426a9ef4de20baf77c
1 require "webrick"
3 class HelloServlet < WEBrick::HTTPServlet::AbstractServlet
4   def do_GET(req, res)
5     res["content-type"] = "text/plain"
6     res.body = "Hello, world.\n"
7   end
8 end