Sha256: d222e2f499b26b867f7a6f5ea2b479cd627f0120733b89debf4d3cda75164e58

Contents?: true

Size: 404 Bytes

Versions: 26

Compression:

Stored size: 404 Bytes

Contents

# must be run without Rack::Lint since that clobbers to_path
use Rainbows::DevFdResponse
run(lambda { |env|
  io = case env["rainbows.model"].to_s
  when /Fiber/
    Rainbows::Fiber::IO::Pipe
  else
    Kgio::Pipe
  end.popen('cat random_blob', 'rb')

  [ 200,
    {
      'Content-Length' => ::File.stat('random_blob').size.to_s,
      'Content-Type' => 'application/octet-stream',
    },
    io
  ]
})

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
rainbows-5.2.1 t/kgio-pipe-response.ru
rainbows-5.2.0 t/kgio-pipe-response.ru
rainbows-5.1.1 t/kgio-pipe-response.ru
rainbows-5.1.0 t/kgio-pipe-response.ru
rainbows-5.0.0.5.ge717 t/kgio-pipe-response.ru
rainbows-5.0.0 t/kgio-pipe-response.ru
rainbows-4.7.0 t/kgio-pipe-response.ru
rainbows-4.6.2 t/kgio-pipe-response.ru
rainbows-4.6.1 t/kgio-pipe-response.ru
rainbows-4.6.0.4.g4108 t/kgio-pipe-response.ru
rainbows-4.6.0 t/kgio-pipe-response.ru
rainbows-4.5.0 t/kgio-pipe-response.ru
rainbows-4.4.3 t/kgio-pipe-response.ru
rainbows-4.4.2 t/kgio-pipe-response.ru
rainbows-4.4.1.1.gd5c8c t/kgio-pipe-response.ru
rainbows-4.4.1 t/kgio-pipe-response.ru
rainbows-4.4.0 t/kgio-pipe-response.ru
rainbows-4.3.1 t/kgio-pipe-response.ru
rainbows-4.3.0 t/kgio-pipe-response.ru
rainbows-4.2.0 t/kgio-pipe-response.ru