12 include "helper/server.inc";
16 nghttpd(function($port) {
17 $client = new http\Client;
19 "protocol" => http\Client\Curl\HTTP_VERSION_2_0,
21 "cainfo" => __DIR__."/helper/http2.crt",
25 $request = new http\Client\Request("GET", "https://localhost:$port");
26 $client->enqueue($request);
27 echo $client->send()->getResponse();
40 <meta charset="utf-8">