unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob e4250939d548f79cc71d88867648ca0d298b9b7c 250 bytes (raw)
$ git show HEAD:t/t0013.ru	# shows this blob on the CLI

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

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