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