class Rack::Events::EventedBodyProxy
:nodoc:
def call(stream)
def call(stream) @handlers.reverse_each { |handler| handler.on_send request, response } super end
def each
def each @handlers.reverse_each { |handler| handler.on_send request, response } super end
def initialize(body, request, response, handlers, &block)
def initialize(body, request, response, handlers, &block) super(body, &block) @request = request @response = response @handlers = handlers end
def respond_to?(method_name, include_all = false)
def respond_to?(method_name, include_all = false) case method_name when :each, :call @body.respond_to?(method_name, include_all) else super end end