YoastSEO_Vendor\GuzzleHttp
RetryMiddleware::__construct() public Yoast 1.0
{} Это метод класса: RetryMiddleware{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$RetryMiddleware = new RetryMiddleware(); $RetryMiddleware->__construct( $decider, $nextHandler, $delay );
- $decider(callable) (обязательный)
- Function that accepts the number of retries, a request, [response], and [exception] and returns true if the request is to be retried.
- $nextHandler(callable) (обязательный)
- Next handler to invoke.
- $delay(callable)
- Function that accepts the number of retries and [response] and returns the number of milliseconds to delay.
По умолчанию: null
Код RetryMiddleware::__construct() RetryMiddleware:: construct Yoast 15.6.2
public function __construct(callable $decider, callable $nextHandler, callable $delay = null)
{
$this->decider = $decider;
$this->nextHandler = $nextHandler;
$this->delay = $delay ?: __CLASS__ . '::exponentialDelay';
}