event_machine: avoid redundant open() for static files
[rainbows.git] / t / simple-http_EventMachine.ru
blob192b908c20163e52d49a49e4f71c7815a52ed4a9
1 use Rack::ContentLength
2 use Rack::ContentType
3 run lambda { |env|
4   if env['rack.multithread'] == false && env['rainbows.model'] == :EventMachine
5     [ 200, {}, [ env.inspect << "\n" ] ]
6   else
7     raise "rack.multithread is true"
8   end