,Fatal error: Swoole\Server::__construct(): swoole_server only can be used in PHP CLI mode. in /data/wwwroot/swoole/index.php on line 8
$http = new swoole_http_server("0.0.0.0", 8855);
$http->on('request', function ($request, $response) {
var_dump($request->get, $request->post);
$response->header("Content-Type", "text/html; charset=utf-8");
$response->end("<h1>Hello Swoole. #".rand(1000, 9999)."</h1>");
});
$http->start();