unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob 488da859788555461436cd85378309115e95f03e 339 bytes (raw)
$ git show HEAD:t/reopen-logs.ru	# shows this blob on the CLI

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