You are here

public function Response::hasVary in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::hasVary()

Returns true if the response includes a Vary header.

Return value

bool true if the response includes a Vary header, false otherwise

File

vendor/symfony/http-foundation/Response.php, line 947

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function hasVary() {
  return null !== $this->headers
    ->get('Vary');
}