Get the response entity body
bool $asString Set to TRUE to return a string of the body rather than a full body object:
EntityBodyInterface|string
public function getBody($asString = false) {
return $asString ? (string) $this->body : $this->body;
}