onRequest() 공개 메소드

处理请求
public onRequest ( Request $request ) : Response
$request Swoole\Request
리턴 Swoole\Response
예제 #1
0
 /**
  * Produce response for Http request.
  *
  * @param $request
  * @return Swoole\Response
  */
 function onHttpRequest(Swoole\Request $request)
 {
     return parent::onRequest($request);
 }
예제 #2
0
 function onRequest(Swoole\Request $request)
 {
     return $request->isWebSocket() ? $this->onWebSocketRequest($request) : parent::onRequest($request);
 }