rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob d05d7ab12a892fb126bde80dab0ceb7a72588ca4 276 bytes (raw)
$ git show HEAD:t/t0009.ru	# shows this blob on the CLI

 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

git clone https://yhbt.net/rainbows.git