WordPress\AiClient\Providers\Http\DTO
RequestOptions::allowsRedirects
Checks whether redirects are allowed.
Метод класса: RequestOptions{}
Хуков нет.
Возвращает
bool|null. True when redirects are allowed (maxRedirects > 0), false when disabled (maxRedirects = 0), null when unspecified (maxRedirects = null).
Использование
$RequestOptions = new RequestOptions(); $RequestOptions->allowsRedirects(): ?bool;
Список изменений
| С версии 0.2.0 | Введена. |
Код RequestOptions::allowsRedirects() RequestOptions::allowsRedirects WP 7.1.2
public function allowsRedirects(): ?bool
{
if ($this->maxRedirects === null) {
return null;
}
return $this->maxRedirects > 0;
}