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",
24 $client->enqueue(new http\Client\Request("GET", "https://localhost:$port"));
25 echo $client->send()->getResponse();
38 <meta charset="utf-8">