The Swoole\Http\Server class
(PECL swoole >= 1.9.0)
简介
类摘要
Swoole\Http\Server
extends
Swoole\Server
{
/* 方法 */
/* 继承的方法 */
public Swoole\Server::after
( int
$after_time_ms
, callable $callback
, string $param
= ?
) : ReturnType
swoole_timer_clear
( int
$timer_id
) : void
public Swoole\Server::getClientInfo
( int
$fd
, int $reactor_id
= ?
, bool $ignore_error
= ?
) : array
public Swoole\Server::sendto
( string
$ip
, int $port
, string $data
, string $server_socket
= ?
) : bool
public Swoole\Server::task
( string
}$data
, int $dst_worker_id
= ?
, callable $callback
= ?
) : mixed目录
- Swoole\Http\Server::on — Bind callback function to HTTP server by event name.
- Swoole\Http\Server::start — Start the swoole http server.