public function Response::hasVary

Returns true if the response includes a Vary header.

@api

Return value

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

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 968

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

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