summary refs log tree commit homepage
path: root/t/t9001.ru
blob: 0a523b98681726304e77d0dd8990c73699e7c10f (plain)
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'
    },
    []
  ]
}