PHP Class Swoole\Protocol\AppServer

Inheritance: extends HttpServer
Show file Open project: matyhtf/swoole_framework Class Usage Examples

Protected Properties

Property Type Description
$apps_path
$router_function

Public Methods

Method Description
onRequest ( Request $request ) : Response 处理请求
onStart ( $serv )

Method Details

onRequest() public method

处理请求
public onRequest ( Request $request ) : Response
$request Swoole\Request
return Swoole\Response

onStart() public method

public onStart ( $serv )

Property Details

$apps_path protected property

protected $apps_path

$router_function protected property

protected $router_function