public function Response::setBody

Set the response entity body

Parameters

EntityBodyInterface|string $body Body to set:

Return value

self

File

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

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function setBody($body) {
  $this->body = EntityBody::factory($body);
  return $this;
}