English | 简体中文 | 繁體中文
查询

Swoole\Http\Response::sendfile()函数—用法及示例

「 通过HTTP响应发送文件 」


适用版本(PECL swoole >= 1.9.0)

Swoole\Http\Response::sendfile — 通过HTTP响应发送文件。

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

通过HTTP响应发送文件。

参数
filename
offset
返回值
补充纠错
热门PHP函数
分享链接