hasVary() public méthode

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