Webiny\Component\Http\Response::setContent PHP Method

setContent() public method

Set response content.
public setContent ( string $content )
$content string Response content.
    public function setContent($content)
    {
        if (!is_string($content)) {
            throw new ResponseException('Response content must be a string.');
        }
        $this->content = $content;
        return $this;
    }