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
RevThreadSpawn is still experimental
[rainbows.git]
/
t
/
async-response.ru
blob
ef76504ce2b66eeb714243f0e842146bc5f6e185
1
use Rack::Chunked
2
use Rainbows::DevFdResponse
3
run lambda { |env|
4
io = IO.popen('for i in 0 1 2 3 4 5 6 7 8 9; do date; sleep 1; done', 'rb')
5
io.sync = true
6
[
7
200,
8
{
9
'Content-Type' => 'text/plain',
10
},
11
io
12
].freeze
13
}