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