The HttpResponse
PHP 手册

HttpResponse::setThrottleDelay

(PECL pecl_http >= 0.10.0)

HttpResponse::setThrottleDelaySet throttle delay

说明

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.

参数

seconds

seconds to sleep after each chunk sent

返回值

如果成功则返回 TRUE,失败则返回 FALSE

参见


The HttpResponse
PHP 手册