You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
15
vendor/swoole/benchmark/http.php
vendored
Executable file
15
vendor/swoole/benchmark/http.php
vendored
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$http = new swoole_http_server("127.0.0.1", 9501, SWOOLE_BASE);
|
||||
|
||||
$http->set([
|
||||
'worker_num' => 4,
|
||||
]);
|
||||
|
||||
$http->on('request', function ($request, swoole_http_response $response) {
|
||||
$response->header('Last-Modified', 'Thu, 18 Jun 2015 10:24:27 GMT');
|
||||
$response->header('E-Tag', '55829c5b-17');
|
||||
$response->header('Accept-Ranges', 'bytes');
|
||||
$response->end("<h1>\nHello Swoole.\n</h1>");
|
||||
});
|
||||
|
||||
$http->start();
|
Reference in New Issue
Block a user