diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-07 12:22:19 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-07 12:22:19 +0000 |
commit | 7ea3185d13176255c24de6f3221525e05cf83ebf (patch) | |
tree | d4ff408c0efe50815ed9c7d6561299a7a8a2c9f7 /sample/webrick/hello.cgi | |
parent | 6be79c5edb742ba3587f7fc92e6d79d8cb34942f (diff) | |
download | ruby-7ea3185d13176255c24de6f3221525e05cf83ebf.tar.gz ruby-7ea3185d13176255c24de6f3221525e05cf83ebf.tar.xz ruby-7ea3185d13176255c24de6f3221525e05cf83ebf.zip |
* sample/webrick/*: new files.
* MANIFEST: add sample/webrick/*
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/webrick/hello.cgi')
-rw-r--r-- | sample/webrick/hello.cgi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sample/webrick/hello.cgi b/sample/webrick/hello.cgi new file mode 100644 index 000000000..35d2240df --- /dev/null +++ b/sample/webrick/hello.cgi @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +require "webrick/cgi" + +class HelloCGI < WEBrick::CGI + def do_GET(req, res) + res["content-type"] = "text/plain" + res.body = "Hello, world.\n" + end +end + +HelloCGI.new.start |