WordPress\AiClient\Providers\Http\Enums
HttpMethodEnum::hasBody
Checks if this method typically has a request body.
Method of the class: HttpMethodEnum{}
No Hooks.
Returns
true|false. True if the method typically has a body, false otherwise.
Usage
$HttpMethodEnum = new HttpMethodEnum(); $HttpMethodEnum->hasBody(): bool;
Changelog
| Since 0.1.0 | Introduced. |
HttpMethodEnum::hasBody() HttpMethodEnum::hasBody code WP 7.0
public function hasBody(): bool
{
return in_array($this->value, [self::POST, self::PUT, self::PATCH], \true);
}