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