1 # -*- encoding: binary -*-
4 # this is class is specific to Rev for writing large static files
5 # or proxying IO-derived objects
6 class Rainbows::Rev::DeferredResponse < Rev::IO
7 def initialize(io, client, body)
9 @client, @body = client, body
17 @client.next! if @client.attached? # attached? is false if write fails
18 @body.respond_to?(:close) and @body.close