rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob a3e2855c7f0cf4f0e48078257080085577450718 229 bytes (raw)
$ git show v0.3.0:t/t4000.ru	# shows this blob on the CLI

1
2
3
4
5
6
7
8
9
 
use Rack::ContentLength
use Rack::ContentType
run lambda { |env|
  if env['rack.multithread'] == false && env['rainbows.model'] == :Rev
    [ 200, {}, [ env.inspect << "\n" ] ]
  else
    raise "rack.multithread is true"
  end
}

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