HttpResponse::setThrottleDelay
(PECL pecl_http >= 0.10.0)
HttpResponse::setThrottleDelay — Set throttle delay
Descrição
static
bool HttpResponse::setThrottleDelay
( float
$seconds
)Sets the throttle delay.
Note: Provides a basic throttling mechanism, which will yield the current process or thread until the entity has been completely sent.
Note:
This may not work as expected with the following SAPI(s): FastCGI.
Parâmetros
-
seconds -
seconds to sleep after each chunk sent
Valor Retornado
Retorna TRUE em caso de sucesso ou FALSE em caso de falha.
Veja Também
- HttpResponse::getBufferSize() - Get buffer size
- HttpResponse::setBufferSize() - Set buffer size
- HttpResponse::getThrottleDelay() - Get throttle delay