You are here

public function Message::hasHeader 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::hasHeader()

Checks if a header exists by the given case-insensitive name.

Parameters

string $name Case-insensitive header field name.:

Return value

bool Returns true if any header names match the given header name using a case-insensitive string comparison. Returns false if no matching header name is found in the message.

Overrides MessageInterface::hasHeader

2 calls to Message::hasHeader()
Message::getHeader in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php
Retrieves a message header value by the given case-insensitive name.
Message::getHeaderLine in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Message.php
Retrieves a comma-separated string of the values for a single header.

File

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

Class

Message
Message.

Namespace

Symfony\Bridge\PsrHttpMessage\Tests\Fixtures

Code

public function hasHeader($name) {
  return isset($this->headers[$name]);
}