WordPress\AiClient\Providers\Http\DTO

Response::hasHeader │ public │ WP 0.1.0

Checks if the response has a header.

Метод класса: Response{}

Хуков нет.

Возвращает

bool. True if the header exists, false otherwise.

Использование

$Response = new Response();
$Response->hasHeader( $name ): bool;
$name(строка) (обязательный)
The header name.

Список изменений

С версии 0.1.0 Введена.

Код Response::hasHeader() WP 7.1.2

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