Object
This class is used by Raindrops::Middleware to proxy application response bodies. There should be no need to use it directly.
the Rack server should call this after each (usually ensure-d)
# File lib/raindrops/middleware/proxy.rb, line 15 def close @stats.decr_writing @body.close if @body.respond_to?(:close) end
yield to the Rack server here for writing
# File lib/raindrops/middleware/proxy.rb, line 10 def each @body.each { |x| yield x } end
Avoid breaking users of non-standard extensions (e.g. body) Rack::BodyProxy does the same.
# File lib/raindrops/middleware/proxy.rb, line 36 def method_missing(*args, &block) @body.__send__(*args, &block) end
Generated with the Darkfish Rdoc Generator 2.