class Seahorse::Client::Http::Response

def body_contents

Returns:
  • (String|Array) -
def body_contents
  if body.is_a?(Array)
    # an array of parsed events
    body
  else
    body.rewind
    contents = body.read
    body.rewind
    contents
  end
end