summary refs log tree commit homepage
path: root/t/simple-http_WriterThreadPool.ru
blob: 0514db4cb21c45767d9fa4035ac25c2c8f177c85 (plain)
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'] == :WriterThreadPool
    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
  else
    raise "rack.multithread is false"
  end
}