unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob 5966bff8d078286719d811d852c39cdc35aa27be 307 bytes (raw)
$ git show HEAD:t/broken-app.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
# frozen_string_literal: false
# 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/unicorn.git