HttpMethodEnum::isIdempotent(): bool

In this article

Checks if this method is idempotent.

Return

bool True if the method is idempotent, false otherwise.

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.