wp-includes/php-ai-client/src/Providers/Http/Enums/HttpMethodEnum.php:32Represents HTTP request methods.
final class HttpMethodEnum extends AbstractEnum{ /** * GET method for retrieving resources. * * @var string */ public const GET = 'GET'; /** * POST method for creating resources. * * @var string */ public const POST = 'POST'; /** * PUT method for updating/replacing resources. * * @var string */ public const PUT = 'PUT'; /** * PATCH method for partially updating resources. * * @var string */ public const PATCH = 'PATCH'; /** * DELETE method for removing resources. * * @var string */ public const DELETE = 'DELETE'; /** * HEAD method for retrieving headers only. * * @var string */ public const HEAD = 'HEAD'; /** * OPTIONS method for retrieving allowed methods. * * @var string */ public const OPTIONS = 'OPTIONS'; /** * CONNECT method for establishing tunnel. * * @var string */ public const CONNECT = 'CONNECT'; /** * TRACE method for diagnostic purposes. * * @var string */ public const TRACE = 'TRACE'; /** * Checks if this method is idempotent. * * @since 0.1.0 * * @return bool True if the method is idempotent, false otherwise. */ public function isIdempotent(): bool { return in_array($this->value, [self::GET, self::HEAD, self::OPTIONS, self::TRACE, self::PUT, self::DELETE], \true); } /** * Checks if this method typically has a request body. * * @since 0.1.0 * * @return bool True if the method typically has a body, false otherwise. */ public function hasBody(): bool { return in_array($this->value, [self::POST, self::PUT, self::PATCH], \true); }}Introduced in 0.1.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/src/Providers/Http/Enums/HttpMethodEnum.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.