rainbows.git about / heads / tags Unicorn for sleepy apps and slow clients
blob b45f1b274c83e618596ef3508a1b811fe28cedf0 227 bytes (raw) $ git show HEAD:t/async-response.ru # shows this blob on the CLI
1 2 3 4 5 6 7 8 9 10 11 12
use Rack::Chunked use Rainbows::DevFdResponse run lambda { |env| io = IO.popen('for i in 0 1 2 3 4 5 6 7 8 9; do date; sleep 1; done', 'rb') [ 200, { 'Content-Type' => 'text/plain', }, io ].freeze }
git clone https://yhbt.net/rainbows.git