You are here

public function HttpResponse::setContent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php \Zend\Feed\PubSubHubbub\HttpResponse::setContent()

Set body content

Parameters

string $content:

Return value

\Zend\Feed\PubSubHubbub\HttpResponse

File

vendor/zendframework/zend-feed/src/PubSubHubbub/HttpResponse.php, line 181

Class

HttpResponse

Namespace

Zend\Feed\PubSubHubbub

Code

public function setContent($content) {
  $this->content = (string) $content;
  $this
    ->setHeader('content-length', strlen($content));
  return $this;
}