You are here

public function Response::getEtag in Zircon Profile 8.0

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

Returns the literal value of the ETag HTTP header.

Return value

string|null The ETag HTTP header or null if it does not exist

2 calls to Response::getEtag()
BinaryFileResponse::prepare in vendor/symfony/http-foundation/BinaryFileResponse.php
Prepares the Response before it is sent to the client.
Response::isNotModified in vendor/symfony/http-foundation/Response.php
Determines if the Response validators (ETag, Last-Modified) match a conditional value specified in the Request.

File

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

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function getEtag() {
  return $this->headers
    ->get('ETag');
}