#!/usr/local/bin/ruby -Ke
require "web/application/simple"
class TestApp < Web::Application::Simple
def do_start(req, rsp)
rsp.content_type = "text/html; charset=EUC-JP"
rsp << ""
rsp << "
Test Application"
rsp << ""
req.query.each {|key,value|
rsp << "#{h(key)} : #{h(value)}
"
}
rsp << ""
rsp << ""
end
def do_x(req, rsp)
rsp.content_type = "text/html; charset=EUC-JP"
rsp << ""
rsp << "Test Application"
rsp << ""
req.query.each {|key,value|
rsp << "#{h(key)} : #{h(value)}
"
}
rsp << ""
rsp << ""
end
end