WordPress\AiClient\Providers\Http\Enums
HttpMethodEnum::hasBody
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() HttpMethodEnum::hasBody WP 7.1.2
public function hasBody(): bool
{
return in_array($this->value, [self::POST, self::PUT, self::PATCH], \true);
}