rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob b65357c7ab56efed8be48633649b23539d3be2da 234 bytes (raw)
$ git show HEAD:t/simple-http_CoolioThreadPool.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'] && env['rainbows.model'] == :CoolioThreadPool
    [ 200, {}, [ env.inspect << "\n" ] ]
  else
    raise "rack.multithread is false"
  end
}

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