HeadersCollection::has( string $name ): bool

In this article

Checks if a header exists.

Parameters

$namestringrequired
The header name (case-insensitive).

Return

bool True if the header exists, false otherwise.

Source

public function has(string $name): bool
{
    return isset($this->headersMap[strtolower($name)]);
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.