wp-includes/php-ai-client/src/Providers/Http/DTO/RequestOptions.php:83Sets the maximum number of redirects to follow.
$maxRedirectsint|nullvoid public function setMaxRedirects(?int $maxRedirects): void { if ($maxRedirects !== null && $maxRedirects < 0) { throw new InvalidArgumentException('Request option "maxRedirects" must be greater than or equal to 0.'); } $this->maxRedirects = $maxRedirects; }Introduced in 0.2.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/DTO/RequestOptions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.