HttpResponse
PHP Manual

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.

参见


HttpResponse
PHP Manual