mini\Http\Message\Request::getHeader() Method

public

Signature

public function getHeader($name): array

Parameters

Name Type Default Description
$name mixed required Documentation missing

Returns

array

Documentation

Retrieves a message header value by the given case-insensitive name.

This method returns an array of all the header values of the given case-insensitive header name.

If the header does not appear in the message, this method MUST return an empty array.

Source

src/Http/Message/MessageTrait.php:123-125