rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 77c8d710ecc206f0ebc52f9f74aedaa79e1ab2ff 289 bytes (raw)
$ git show HEAD:t/fast-pipe-response.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 
# must be run without Rack::Lint since that clobbers to_path
use Rainbows::DevFdResponse
run(lambda { |env|
  [ 200,
    {
      'Content-Length' => ::File.stat('random_blob').size.to_s,
      'Content-Type' => 'application/octet-stream',
    },
    IO.popen('cat random_blob', 'rb') ]
})

git clone https://yhbt.net/rainbows.git