(PECL pecl_http >= 0.10.0)
HttpResponse::setFile — Set file
$file
Set the file to be sent.
Note: 預先計算過或已定義的 ETag 與 Last-Modified 會被重新計算和重新定義。
file
the path to the file to send
如果成功則回傳 TRUE,失敗則回傳 FALSE。
TRUE
FALSE