public setPrivate ( ) : |
||
return | This response, for method chaining |
public function setPrivate()
{
$this->headers->setCacheControlDirective('private');
return $this;
}
/** * RFC 2616 / 14.9.1 * * @test */ public function setPrivateSetsTheRespectiveCacheControlDirective() { $response = new Response(); $response->setNow(new \DateTime()); $response->setPrivate(); $this->assertEquals('private', $response->getHeader('Cache-Control')); }