PHP - Manual: Swoole\Http\Server::on
2024-12-22
(PECL swoole >= 1.9.0)
Swoole\Http\Server::on — Bind callback function to HTTP server by event name.
Bind callback function to HTTP server by event name.
event_name
callback
官方地址:https://www.php.net/manual/en/swoole-http-server.on.php