You are here

public function MessageInterface::hasHeader in Zircon Profile 8

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

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

File

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

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 hasHeader($name);