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.
EntityBodyInterface $body Response body object:
Overrides RequestInterface::setResponseBody
public function setResponseBody(EntityBodyInterface $body) {
$this->responseBody = $body;
return $this;
}