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