1 # must be run without Rack::Lint since that clobbers to_path
2 class CloseWrapper < Struct.new(:to_io)
8 ::File.open(ENV['fifo'], 'wb') do |fp|
9 fp.syswrite("CLOSING #{to_io}\n")
10 if to_io.respond_to?(:close) && ! to_io.closed?
16 use Rainbows::DevFdResponse
18 io = IO.popen('cat random_blob', 'rb')
21 'Content-Length' => ::File.stat('random_blob').size.to_s,
22 'Content-Type' => 'application/octet-stream',