repo.or.cz
/
rainbows.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
rev: split out further into separate files for reuse
[rainbows.git]
/
t
/
simple-http_ThreadSpawn.ru
blob
aa1accb3188814d092f7125648a997a33a01ad57
1
use Rack::ContentLength
2
use Rack::ContentType
3
run lambda { |env|
4
sleep 1
5
if env['rack.multithread'] && env['rainbows.model'] == :ThreadSpawn
6
[ 200, {}, [ Thread.current.inspect << "\n" ] ]
7
else
8
raise "rack.multithread is not true"
9
end
10
}