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