summaryrefslogtreecommitdiff
path: root/jni/ruby/sample/webrick/hello.cgi
blob: 35d2240df0f36d3a6f3efd4e1158c4283bb28944 (plain)
1
2
3
4
5
6
7
8
9
10
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