getEtag() public method

Returns the literal value of the ETag HTTP header
public getEtag ( ) : string
return string The ETag HTTP header or null if it does not exist
Example #1
0
 /**
  * Test Etag
  */
 public function testEtag()
 {
     $this->cacheControl->setEtag('"unique-content-id"');
     $this->assertEquals('"unique-content-id"', $this->cacheControl->getEtag());
     $this->assertEquals('"unique-content-id"', $this->response->getHeader('ETag'));
 }