public function Response::getVary

Same name in this branch

Get the Vary HTTP header

Return value

string|null Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server.

File

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

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function getVary() {
  return $this
    ->getHeader('Vary', true);
}