#!/usr/bin/ruby1.7 -Ks
require "web"
require "hello/application"

app = Hello::Application.new
app.setup

api = Web::Interface::auto_detect.new
while req = api.request()
  rsp = app.run(req)
  api.response rsp
end

app.teardown
