WordPress\AiClient\Providers\Http\DTO
RequestOptions::getMaxRedirects
Gets the maximum number of redirects to follow.
Method of the class: RequestOptions{}
No Hooks.
Returns
Int|null. Maximum redirects or null when not specified.
Usage
$RequestOptions = new RequestOptions(); $RequestOptions->getMaxRedirects(): ?int;
Changelog
| Since 0.2.0 | Introduced. |
RequestOptions::getMaxRedirects() RequestOptions::getMaxRedirects code WP 7.0
public function getMaxRedirects(): ?int
{
return $this->maxRedirects;
}