Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Response.php

function Response::hasVary

Returns true if the response includes a Vary header.

@final

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function hasVary() : bool {
    return null !== $this->headers
        ->get('Vary');
}
RSS feed
Powered by Drupal