public function Header::hasExactHeader

Check if a particular case variation is present in the header Example: A header exists on a message for 'Foo', and 'foo'. The Header object will contain all of the values of 'Foo' and all of the values of 'foo'. You can use this method to check to see if a header was set using 'foo' (true), 'Foo' (true), 'FOO' (false), etc.

Parameters

string $header Exact header to check for:

Return value

bool

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Header.php, line 145

Class

Header
Represents a header and all of the values stored by that header

Namespace

Guzzle\Http\Message

Code

public function hasExactHeader($header) {
  return array_key_exists($header, $this->values);
}