array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'swoole-http-response.sendfile.php', 1 => 'Swoole\\Http\\Response::sendfile', 2 => 'Send file through the HTTP response.', ), 'up' => array ( 0 => 'class.swoole-http-response.php', 1 => 'Swoole\\Http\\Response', ), 'prev' => array ( 0 => 'swoole-http-response.rawcookie.php', 1 => 'Swoole\\Http\\Response::rawcookie', ), 'next' => array ( 0 => 'swoole-http-response.status.php', 1 => 'Swoole\\Http\\Response::status', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/http/response/sendfile.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Http\Response::sendfile

(PECL swoole >= 1.9.0)

Swoole\Http\Response::sendfileSend file through the HTTP response.

説明

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

Send file through the HTTP response.

パラメータ

filename

offset

戻り値