public function MessageInterface::getHeader

Retrieve an HTTP header by name. Performs a case-insensitive search of all headers.

Parameters

string $header Header to retrieve.:

bool $string Set to true to get the header as a string:

Return value

string|Header|null Returns NULL if no matching header is found. Returns a string if $string is set to TRUE. Returns a Header object if a matching header is found.

1 method overrides MessageInterface::getHeader()
AbstractMessage::getHeader in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/AbstractMessage.php
Retrieve an HTTP header by name. Performs a case-insensitive search of all headers.

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/MessageInterface.php, line 48

Class

MessageInterface
Request and response message interface

Namespace

Guzzle\Http\Message

Code

public function getHeader($header, $string = false);