作者 karlet

feat:打印请求

@@ -45,7 +45,7 @@ class SimpleServerCoroutine @@ -45,7 +45,7 @@ class SimpleServerCoroutine
45 'cookie' => $request->cookie ?: [], 45 'cookie' => $request->cookie ?: [],
46 'rawContent' => $request->rawContent() ?: '' 46 'rawContent' => $request->rawContent() ?: ''
47 ]; 47 ];
48 - output($requestInfo); 48 + output($requestInfo['method'], $requestInfo['path'], "GET:" . json_encode($requestInfo['get']), "POST:" . json_encode($requestInfo['post']), "rawContent:" . $requestInfo['rawContent']);
49 $simpleRequest = new SimpleRequest($requestInfo); 49 $simpleRequest = new SimpleRequest($requestInfo);
50 $res = call_user_func($callback, $simpleRequest); 50 $res = call_user_func($callback, $simpleRequest);
51 if (empty($res)) { 51 if (empty($res)) {