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
switch docs + website to olddoc
[rainbows.git]
/
t
/
t9101.ru
blob
ee20085f9517700bbca1ca43bd0802486d947fcc
1
use Rack::ContentLength
2
use Rack::ContentType, 'text/plain'
3
use Rainbows::ThreadTimeout, :timeout => 1, :threshold => -1
4
run lambda { |env|
5
if env["PATH_INFO"] =~ %r{/([\d\.]+)\z}
6
Rainbows.sleep($1.to_f)
7
end
8
[ 200, [], [ "HI\n" ] ]
9
}