The HttpResponse
PHP 手册

HttpResponse::setStream

(PECL pecl_http >= 0.10.0)

HttpResponse::setStreamSet stream

说明

static bool HttpResponse::setStream ( resource $stream )

Set the resource to be sent.

Note: Previously calculated or defined ETag and Last-Modified will be recalculated and redefined.

参数

stream

already opened stream from which the data to send will be read

返回值

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

参见


The HttpResponse
PHP 手册