summary refs log tree commit homepage
path: root/t/simple-http_ThreadSpawn.ru
blob: ea5dee252b2af7eb0ae253e03d87394e908763bc (plain)
1
2
3
4
5
6
7
8
9
use Rack::ContentLength
use Rack::ContentType
run lambda { |env|
  if env['rack.multithread'] && env['rainbows.model'] == :ThreadSpawn
    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
  else
    raise "rack.multithread is not true"
  end
}