The Swoole\Http\Server class
(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)
简介
类摘要
Swoole\Http\Server
extends Swoole\Server {
/* 方法 */
/* 继承的方法 */
public
Swoole\Server::after (
integer
$after_time_ms
,
callable $callback
[,
string $param
] ) :
ReturnType
swoole_timer_clear (
integer
$timer_id
) :
void
public
Swoole\Server::sendto (
string
$ip
,
integer $port
,
string $data
[,
string $server_socket
] ) :
boolean
public
Swoole\Server::task (
string
}
$data
[,
integer $dst_worker_id
[,
callable $callback
]] ) :
mixed
Table of Contents
- Swoole\Http\Server::on — Bind callback function to HTTP server by event name.
- Swoole\Http\Server::start — Start the swoole http server.