WordPress\AiClient\Providers\Http\Collections

HeadersCollection::haspublicWP 0.1.0

Checks if a header exists.

Method of the class: HeadersCollection{}

No Hooks.

Returns

true|false. True if the header exists, false otherwise.

Usage

$HeadersCollection = new HeadersCollection();
$HeadersCollection->has( $name ): bool;
$name(string) (required)
The header name (case-insensitive).

Changelog

Since 0.1.0 Introduced.

HeadersCollection::has() code WP 7.0

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