SevenShores\Hubspot\Http\Response::withBody PHP Method

withBody() public method

The body MUST be a StreamInterface object. This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return a new instance that has the new body stream.
public withBody ( Psr\Http\Message\StreamInterface $body ) : self
$body Psr\Http\Message\StreamInterface Body.
return self
    function withBody(StreamInterface $body)
    {
        return $this->response->withBody($body);
    }