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",
22 "verifypeer" => false, // needed for NSS without PEM support
26 $request = new http\Client\Request("GET", "https://localhost:$port");
27 $client->enqueue($request);
28 echo $client->send()->getResponse();
41 <meta charset="utf-8">