wp-includes/rest-api/class-wp-rest-request.php:172Determines if the request is the given method.
$methodstringbool public function is_method( $method ) { return $this->get_method() === strtoupper( $method ); }Introduced in 6.8.0. Unchanged from 6.8.8 through 7.1.0.
Signature, return type and hooks compared across 4 parsed releases.
src/wp-includes/rest-api/class-wp-rest-request.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.