You are here

public function MessageInterface::getHeader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/psr/http-message/src/MessageInterface.php \Psr\Http\Message\MessageInterface::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.

1 method overrides MessageInterface::getHeader()
Message::getHeader in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php
Retrieves a message header value by the given case-insensitive name.

File

vendor/psr/http-message/src/MessageInterface.php, line 94

Class

MessageInterface
HTTP messages consist of requests from a client to a server and responses from a server to a client. This interface defines the methods common to each.

Namespace

Psr\Http\Message

Code

public function getHeader($name);