summary refs log tree commit homepage
path: root/t/simple-http_RevFiberSpawn.ru
blob: ea9b0e35043c53168e0902caa83e23783439aa02 (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'] == :RevFiberSpawn
    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
  else
    raise env.inspect
  end
}