2024 年 PHP Conference Japan

Swoole\Http\Response::sendfile

(PECL swoole >= 1.9.0)

Swoole\Http\Response::sendfile透過 HTTP 回應傳送檔案。

說明

public Swoole\Http\Response::sendfile(string $filename, int $offset = ?): ReturnType

透過 HTTP 回應傳送檔案。

參數

filename (檔案名稱)

offset (偏移量)

傳回值

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top