The Swoole\Http\Server class

Introduction

Class synopsis

Swoole\Http\Server
class Swoole\Http\Server extends Swoole\Server {
/* Methods */
public void on(string $event_name, callable $callback)
public void start()
/* Inherited methods */
public void Swoole\Server::addlistener(string $host, int $port, string $socket_type)
public bool Swoole\Server::addProcess(swoole_process $process)
public ReturnType Swoole\Server::after(int $after_time_ms, callable $callback, string $param = ?)
public bool Swoole\Server::bind(int $fd, int $uid)
public void Swoole\Server::clearTimer(int $timer_id)
void swoole_timer_clear(int $timer_id)
public bool Swoole\Server::close(int $fd, bool $reset = ?)
public bool Swoole\Server::confirm(int $fd)
public array Swoole\Server::connection_info(int $fd, int $reactor_id = ?)
public array Swoole\Server::connection_list(int $start_fd, int $pagesize = ?)
public void Swoole\Server::defer(callable $callback)
public void Swoole\Server\Port::__destruct()
public ReturnType Swoole\Server\Port::on(string $event_name, callable $callback)
public void Swoole\Server\Port::set(array $settings)
public bool Swoole\Server::exist(int $fd)
public void Swoole\Server::finish(string $data)
public array Swoole\Server::getClientInfo(int $fd, int $reactor_id = ?, bool $ignore_error = ?)
public array Swoole\Server::getClientList(int $start_fd, int $pagesize = ?)
public int Swoole\Server::getLastError()
public mixed Swoole\Server::heartbeat(bool $if_close_connection)
public bool Swoole\Server::listen(string $host, int $port, string $socket_type)
public void Swoole\Server::on(string $event_name, callable $callback)
public void Swoole\Server::pause(int $fd)
public void Swoole\Server::protect(int $fd, bool $is_protected = ?)
public bool Swoole\Server::reload()
public void Swoole\Server::resume(int $fd)
public bool Swoole\Server::send(int $fd, string $data, int $reactor_id = ?)
public bool Swoole\Server::sendfile(int $fd, string $filename, int $offset = ?)
public bool Swoole\Server::sendMessage(int $worker_id, string $data)
public bool Swoole\Server::sendto(
    string $ip,
    int $port,
    string $data,
    string $server_socket = ?
)
public bool Swoole\Server::sendwait(int $fd, string $data)
public ReturnType Swoole\Server::set(array $settings)
public void Swoole\Server::shutdown()
public void Swoole\Server::start()
public array Swoole\Server::stats()
public bool Swoole\Server::stop(int $worker_id = ?)
public mixed Swoole\Server::task(string $data, int $dst_worker_id = ?, callable $callback = ?)
public void Swoole\Server::taskwait(string $data, float $timeout = ?, int $worker_id = ?)
public void Swoole\Server::taskWaitMulti(array $tasks, float $timeout_ms = ?)
public void Swoole\Server::tick(int $interval_ms, callable $callback)
}
Table of Contents