"QQMJDBUJPO4FMFDUXIJDIQSPUPDPMUPVTF
require "rack"
require "toycol"
Toycol::Protocol.use(:rubylike)
class App
def call(env)
case env["REQUEST_METHOD"]
when “GET”
[200, { "Content-Type" => "text/html" }, [“I love Ruby!”\n”, ”I love RubyKaigi!\n”]]
when “OTHER”
[600, { "Content-Type" => "text/html" },
[“Sorry, but I'd like you to speak more like a Ruby programmer…”]]
end
end
end
run App.new
DPO
fi
[email protected]
1BTTUIFQSPUPDPMOBNFZPVXBOUUPVTFUP
5PZDPM1SPUPDPMVTF