class ActionDispatch::Response

def body

of any calls to render.
Returns the content of the response as a string. This contains the contents
def body
  @stream.body
end