« Swoole\Http\Server
Swoole\Http\Server::start »

Swoole\Http\Server::on

(PECL swoole >= 1.9.0)

Swoole\Http\Server::on — Bind callback function to HTTP server by event name.

説明

public function Swoole\Http\Server::on(string $event_name, callable $callback): void

Bind callback function to HTTP server by event name.

パラメータ

event_name

callback

戻り値

関連キーワード:
callback   event   Swoole   Http   Server   Bind   server   start   swoole   callable
関連する関数・ページ:
class.swoole-http-server   swoole-server.on   swoole-http-client.on   swoole-http-server.start   swoole-server.bind   swoole-server.start