WordPress\AiClient\Providers\Http\Enums
HttpMethodEnum::isIdempotent
Checks if this method is idempotent.
Method of the class: HttpMethodEnum{}
No Hooks.
Returns
true|false. True if the method is idempotent, false otherwise.
Usage
$HttpMethodEnum = new HttpMethodEnum(); $HttpMethodEnum->isIdempotent(): bool;
Changelog
| Since 0.1.0 | Introduced. |
HttpMethodEnum::isIdempotent() HttpMethodEnum::isIdempotent code WP 7.0
public function isIdempotent(): bool
{
return in_array($this->value, [self::GET, self::HEAD, self::OPTIONS, self::TRACE, self::PUT, self::DELETE], \true);
}