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