Swoole\Http\Server::on

(PECL swoole >= 1.9.0)

Swoole\Http\Server::onVincula a função de retorno (callback) ao servidor HTTP pelo nome do evento.

Descrição

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

Vincula a função de retorno (callback) ao servidor HTTP pelo nome do evento.

Parâmetros

event_name

callback

Valor Retornado

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top