about summary refs log tree commit homepage
path: root/t/simple-http_CoolioFiberSpawn.ru
blob: 9c39ed413f75a5016005aea50105c9e22fdd3fe4 (plain)
1
2
3
4
5
6
7
8
9
10
use Rack::ContentLength
use Rack::ContentType
run lambda { |env|
  if env['rack.multithread'] == false &&
    env['rainbows.model'] == :CoolioFiberSpawn
    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
  else
    raise env.inspect
  end
}