summary refs log tree commit homepage
path: root/t/simple-http_ThreadPool.ru
blob: cd5df82bdcce5c1d6a6e74e1477e1b1e201b4871 (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'] == :ThreadPool
    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
  else
    raise "rack.multithread is not true"
  end
}