summary refs log tree commit homepage
path: root/t/t0009.ru
blob: d05d7ab12a892fb126bde80dab0ceb7a72588ca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# we do not want Rack::Lint or anything to protect us
use Rack::ContentLength
use Rack::ContentType, "text/plain"
map "/" do
  run lambda { |env| [ 200, {}, [ "OK\n" ] ] }
end
map "/raise" do
  run lambda { |env| raise "BAD" }
end
map "/nil" do
  run lambda { |env| nil }
end