class Rack::BodyProxy

def method_missing(method_name, *args, &block)

Delegate missing methods to the wrapped body.
def method_missing(method_name, *args, &block)
  @body.__send__(method_name, *args, &block)
end