public function MessageInterface::hasHeader in Lockr 7.3
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.
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\MessageCode
public function hasHeader($name);