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