WordPress\AiClient\Providers\Http\Enums

HttpMethodEnum::hasBody │ public │ WP 0.1.0

Checks if this method typically has a request body.

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

Хуков нет.

Возвращает

bool. True if the method typically has a body, false otherwise.

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

$HttpMethodEnum = new HttpMethodEnum();
$HttpMethodEnum->hasBody(): bool;

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

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

Код HttpMethodEnum::hasBody() WP 7.1.2

public function hasBody(): bool
{
    return in_array($this->value, [self::POST, self::PUT, self::PATCH], \true);
}