HttpResponse::setStream
(PECL pecl_http >= 0.10.0)
HttpResponse::setStream — Set stream
说明
static
bool HttpResponse::setStream
( resource
$stream
)Set the resource to be sent.
Note: 预先计算过或已定义的 ETag 与 Last-Modified 会被重新计算和重新定义。
参数
-
stream -
already opened stream from which the data to send will be read
返回值
成功时返回 TRUE, 或者在失败时返回 FALSE。
参见
- HttpResponse::getData() - Get data
- HttpResponse::setData() - Set data
- HttpResponse::getFile() - Get file
- HttpResponse::setFile() - Set file
- HttpResponse::getStream() - Get Stream
There are no user contributed notes for this page.
