The Swoole\Http\Server class
(PECL swoole >= 1.9.0)
Introduction
Class synopsis
class Swoole\Http\Server
extends
Swoole\Server
{
/* Methods */
/* Inherited methods */
public function Swoole\Server::after(int
$after_time_ms, callable $callback, string $param = ?): ReturnTypepublic function Swoole\Server::getClientInfo(int
$fd, int $reactor_id = ?, bool $ignore_error = ?): arraypublic function Swoole\Server::sendto(
string
int
string
string
): bool
string
$ip,int
$port,string
$data,string
$server_socket = ?): bool
public function Swoole\Server::task(string
}$data, int $dst_worker_id = ?, callable $callback = ?): mixedTable of Contents
- Swoole\Http\Server::on — Bind callback function to HTTP server by event name.
- Swoole\Http\Server::start — Start the swoole http server.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
