The HttpResponse
PHP 手册

HttpResponse::setBufferSize

(PECL pecl_http >= 0.10.0)

HttpResponse::setBufferSizeSet buffer size

说明

static bool HttpResponse::setBufferSize ( int $bytes )

Sets the send buffer size of the throttling mechanism.

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.

参数

bytes

the chunk size in bytes

返回值

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

参见


The HttpResponse
PHP 手册