hasVary() public method

Returns true if the response includes a Vary header.
public hasVary ( ) : boolean
return boolean true if the response includes a Vary header, false otherwise
Ejemplo n.º 1
0
 public function testHasVary()
 {
     $response = new Response();
     $this->assertFalse($response->hasVary());
     $response->setVary('User-Agent');
     $this->assertTrue($response->hasVary());
 }