public function Response::getBody

Get the response entity body

Parameters

bool $asString Set to TRUE to return a string of the body rather than a full body object:

Return value

EntityBodyInterface|string

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 191

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function getBody($asString = false) {
  return $asString ? (string) $this->body : $this->body;
}