Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Http\Response::rawcookieSwoole\Http\Response::status>
^Swoole\Http\ResponseLast updated: Mon, 26 Oct 2026

Swoole\Http\Response::sendfile

(PECL swoole >= 1.9.0)

Swoole\Http\Response::sendfile — Send file through the HTTP response.

Description

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

Send file through the HTTP response.

Parameters

filename

offset

Return Values


<Swoole\Http\Response::rawcookieSwoole\Http\Response::status>
^Swoole\Http\ResponseLast updated: Mon, 26 Oct 2026