Allows you to manually set or override the response body.
# File actionpack/lib/action_dispatch/http/response.rb, line 325
def body=(body)
if body.respond_to?(:to_path)
@stream = body
else
synchronize do
@stream = build_buffer self, munge_body_object(body)
end
end
end