class Rack::BodyProxy
def close
If not already closed, close the wrapped body and
def close return if @closed @closed = true begin @body.close if @body.respond_to?(:close) ensure @block.call end end
def close return if @closed @closed = true begin @body.close if @body.respond_to?(:close) ensure @block.call end end