swoole_http_response

ʾ����

$http = new swoole_http_server("127.0.0.1", 9501);
$http->on('request', function ($request, $response) {
    var_dump($response);
    $response->end("

Hello Swoole. #".rand(1000, 9999)."

"); }); $http->start();