PHP - Manual: Swoole\Http\Response::sendfile
2024-11-15
(PECL swoole >= 1.9.0)
Swoole\Http\Response::sendfile — Send file through the HTTP response.
$filename
, int $offset
= ?): ReturnTypeSend file through the HTTP response.
filename
offset
官方地址:https://www.php.net/manual/en/swoole-http-response.sendfile.php