unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob b0bd2b74cef5a8ac229d42fb239f8e942f5b18c5 216 bytes (raw)
$ git show v4.4.0:t/t0014.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
#\ -E none
use Rack::ContentLength
use Rack::ContentType, 'text/plain'
app = lambda do |env|
  case env['rack.input']
  when Unicorn::TeeInput
    [ 200, {}, %w(OK) ]
  else
    [ 500, {}, %w(NO) ]
  end
end
run app

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