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
Rainbows! 0.90.1
[rainbows.git]
/
t
/
simple-http_EventMachineDefer.ru
blob
71269fa75b2ee57468ff69652a3f981faf2f5f9e
1
use Rack::ContentLength
2
use Rack::ContentType
3
run lambda { |env|
4
if env['rack.multithread'] == true &&
5
EM.reactor_running? &&
6
env['rainbows.model'] == :EventMachineDefer
7
[ 200, {}, [ env.inspect << "\n" ] ]
8
else
9
raise "incorrect parameters"
10
end
11
}