public function RequestInterface::setResponseBody

Set the EntityBody that will hold the response message's entity body.

This method should be invoked when you need to send the response's entity body somewhere other than the normal php://temp buffer. For example, you can send the entity body to a socket, file, or some other custom stream.

Parameters

EntityBodyInterface $body Response body object:

Return value

Request

1 method overrides RequestInterface::setResponseBody()
Request::setResponseBody in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Set the EntityBody that will hold the response message's entity body.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/RequestInterface.php, line 268

Class

RequestInterface
Generic HTTP request interface

Namespace

Guzzle\Http\Message

Code

public function setResponseBody(EntityBodyInterface $body);