unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob c39e8f6497ede12b2258977fbb1e4e749ab3c24f 308 bytes (raw)
$ git show no-kgio-wip:t/t0006.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 
use Rack::ContentLength
use Rack::ContentType, "text/plain"
run lambda { |env|

  # our File objects for stderr/stdout should always have #path
  # and be sync=true
  ok = $stderr.sync &&
       $stdout.sync &&
       String === $stderr.path &&
       String === $stdout.path

  [ 200, {}, [ "#{ok}\n" ] ]
}

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