You are here

public function Message::getHeader in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Message::getHeader()

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.

Parameters

string $name Case-insensitive header field name.:

Return value

string[] An array of string values as provided for the given header. If the header does not appear in the message, this method MUST return an empty array.

Overrides MessageInterface::getHeader

File

vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php, line 55

Class

Message
Message.

Namespace

Symfony\Bridge\PsrHttpMessage\Tests\Fixtures

Code

public function getHeader($name) {
  return $this
    ->hasHeader($name) ? $this->headers[$name] : array();
}