$client->setOptions([
"protocol" => http\Client\Curl\HTTP_VERSION_2_0,
"ssl" => [
- "cafile" => __DIR__."/helper/http2.crt",
+ "cainfo" => __DIR__."/helper/http2.crt",
]
]);
- $client->enqueue(new http\Client\Request("GET", "https://localhost:$port"));
+
+ $request = new http\Client\Request("GET", "https://localhost:$port");
+ $client->enqueue($request);
echo $client->send()->getResponse();
});
===DONE===
--EXPECTF--
Test
-HTTP/2.0 200
+HTTP/2 200
%a
<!doctype html>