7 if (version_compare(http\Client\Curl\Versions\CURL, "7.62.0", ">=")) {
8 die("skip CURL_VERSION >= 7.62 -- pipelining disabled\n");
14 include "helper/server.inc";
18 server("pipeline.inc", function($port, $stdin) {
21 $request = new http\Client\Request("GET", "http://localhost:$port");
23 $client = new http\Client();
24 $client->configure(array("pipelining" => true, "use_eventloop" => true));
26 $client->enqueue($request);
29 $client->enqueue(clone $request);
30 $client->enqueue(clone $request);
34 while ($client->getResponse()) {