summary refs log tree commit homepage
path: root/t/simple-http_CoolioThreadSpawn.ru
blob: 3c4bcaa798faae901f241ad2f57beefa82286b44 (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'] == :CoolioThreadSpawn
    [ 200, {}, [ env.inspect << "\n" ] ]
  else
    raise "rack.multithread is false"
  end
}