class Rack::BodyProxy

def respond_to_missing?(method_name, include_all = false)

Return whether the wrapped body responds to the method.
def respond_to_missing?(method_name, include_all = false)
  case method_name
  when :to_str
    false
  else
    super or @body.respond_to?(method_name, include_all)
  end
end