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-4.1.0 t/kgio-pipe-response.ru
rainbows-4.0.0 t/kgio-pipe-response.ru
rainbows-3.4.0 t/kgio-pipe-response.ru
rainbows-3.3.0 t/kgio-pipe-response.ru
rainbows-3.2.0 t/kgio-pipe-response.ru
rainbows-3.1.0 t/kgio-pipe-response.ru