WordPress\AiClient\Providers\Http\DTO

Request::hasHeaderpublicWP 0.1.0

Checks if a header exists.

Method of the class: Request{}

No Hooks.

Returns

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

Usage

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

Changelog

Since 0.1.0 Introduced.

Request::hasHeader() code WP 7.0.4

public function hasHeader(string $name): bool
{
    return $this->headers->has($name);
}