WordPress\AiClient\Providers\Http\Enums

HttpMethodEnum::isIdempotent │ public │ WP 0.1.0

Checks if this method is idempotent.

Method of the class: HttpMethodEnum{}

No Hooks.

Returns

bool. True if the method is idempotent, false otherwise.

Usage

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

Changelog

Since 0.1.0 Introduced.

HttpMethodEnum::isIdempotent() code WP 7.1.2

public function isIdempotent(): bool
{
    return in_array($this->value, [self::GET, self::HEAD, self::OPTIONS, self::TRACE, self::PUT, self::DELETE], \true);
}