HttpResponse
PHP Manual

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: 提供基本的节流机制,会放弃当前进程或线程,直至实体已被发送完毕。

Note:

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

参数

bytes

the chunk size in bytes

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.

参见


HttpResponse
PHP Manual