rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 0a523b98681726304e77d0dd8990c73699e7c10f 190 bytes (raw)
$ git show HEAD:t/t9001.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
use Rainbows::Sendfile
run lambda { |env|
  path = "#{Dir.pwd}/random_blob"
  [ 200,
    {
      'X-Sendfile' => path,
      'Content-Type' => 'application/octet-stream'
    },
    []
  ]
}

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