HttpResponse::setStream
(PECL pecl_http >= 0.10.0)
HttpResponse::setStream — ストリームを設定する
説明
static
bool HttpResponse::setStream
( resource $stream
)
送信されるリソースを設定します。
注意: 以前に計算したり定義したりしていた ETag や Last-Modified は、再計算/再定義されます。
パラメータ
- stream
-
送信するデータの読み込み元となる、 既にオープンしているストリーム。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。
参考
- HttpResponse::getData - データを取得する
- HttpResponse::setData - データを設定する
- HttpResponse::getFile - ファイルを取得する
- HttpResponse::setFile - ファイルを設定する
- HttpResponse::getStream - ストリームを取得する
HttpResponse::setStream
There are no user contributed notes for this page.
