public function Response::getEtag

Same name in this branch

Get the ETag HTTP header

Return value

string|null Returns an identifier for a specific version of a resource, often a Message digest.

1 call to Response::getEtag()
Response::canValidate in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php
Check if the response can be validated against the origin server using a conditional GET request.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 556

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function getEtag() {
  $etag = $this
    ->getHeader('ETag', true);
  return $etag ? str_replace('"', '', $etag) : null;
}