wp-includes/SimplePie/src/HTTP/Psr18Client.php:75send a request and return the response
$methodSimplePie\HTTP\Client::METHOD_*$urlstring$headersSimplePie\HTTP\array<string,string|SimplePie\HTTP\string[]>optional[] public function request(string $method, string $url, array $headers = []): Response { if ($method !== self::METHOD_GET) { throw new InvalidArgumentException(sprintf( '%s(): Argument #1 ($method) only supports method "%s".', __METHOD__, self::METHOD_GET ), 1); } if (preg_match('/^http(s)?:\/\//i', $url)) { return $this->requestUrl($method, $url, $headers); } return $this->requestLocalFile($url); }Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
src/wp-includes/SimplePie/src/HTTP/Psr18Client.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.