HttpResponse::setThrottleDelay
(PECL pecl_http >= 0.10.0)
HttpResponse::setThrottleDelay — Set throttle delay
Descrierea
static
bool HttpResponse::setThrottleDelay
( float $seconds
)
Sets the throttle delay.
Notă: Oferă un mecanism de limitare de bază, care va suspenda procesul sau firul de execuţie curent până când entitatea nu este transmisă deplin.
Notă: Aceasta poate să nu funcţioneze conform aşteptărilor cu următoarele SAPI(uri): FastCGI.
Parametri
- seconds
-
seconds to sleep after each chunk sent
Valorile întroarse
Întoarce valoarea TRUE în cazul succesului sau FALSE în cazul eşecului.
Vedeţi de asemenea
- HttpResponse::getBufferSize - Get buffer size
- HttpResponse::setBufferSize - Set buffer size
- HttpResponse::getThrottleDelay - Get throttle delay
HttpResponse::setThrottleDelay
There are no user contributed notes for this page.
