summary refs log tree commit homepage
path: root/t/simple-http_EventMachine.ru
blob: 192b908c20163e52d49a49e4f71c7815a52ed4a9 (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'] == :EventMachine
    [ 200, {}, [ env.inspect << "\n" ] ]
  else
    raise "rack.multithread is true"
  end
}