HttpResponse::setThrottleDelay

(PECL pecl_http >= 0.10.0)

HttpResponse::setThrottleDelaySet throttle delay

說明

static bool HttpResponse::setThrottleDelay ( float $seconds )

Sets the throttle delay.

Note: 提供基本的節流機制,會放棄當前程序或線程,直至實體已被完全發送。

Note:

下列 SAPI 可能不能正常的工作: FastCGI.

參數

seconds

seconds to sleep after each chunk sent

回傳值

如果成功則回傳 TRUE,失敗則回傳 FALSE

參見

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top