From 82a8ec11d208c27f706232134da6458c51fee583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Oct 2020 11:05:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnRequest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/HttpServer/Events/OnRequest.php b/HttpServer/Events/OnRequest.php index 1479486a..7d5a1cb1 100644 --- a/HttpServer/Events/OnRequest.php +++ b/HttpServer/Events/OnRequest.php @@ -39,6 +39,8 @@ class OnRequest extends Callback try { Coroutine::defer(function () { fire(Event::EVENT_AFTER_REQUEST, [$sRequest ?? null]); + + echo 'Event::EVENT_AFTER_REQUEST ~ defer' . PHP_EOL; }); if (Config::get('debug.enable', false, false)) { function_exists('trackerHookMalloc') && trackerHookMalloc(); @@ -53,6 +55,8 @@ class OnRequest extends Callback } catch (Error | \Throwable $exception) { $this->sendErrorMessage($sResponse ?? null, $exception, $response); } + + echo 'Event::EVENT_AFTER_REQUEST ~~~~~~~~~ defer' . PHP_EOL; } /**