rev: add sendfile support
[rainbows.git] / t / simple-http_NeverBlock.ru
blob31ee561ef1267ba539f34d8a4b731a975b36147f
1 use Rack::ContentLength
2 use Rack::ContentType
3 run lambda { |env|
4   if env['rack.multithread'] == false &&
5     EM.reactor_running? &&
6     env['rainbows.model'] == :NeverBlock
7     [ 200, {}, [ Thread.current.inspect << "\n" ] ]
8   else
9     raise env.inspect
10   end