2 client once & wait with events
7 $client = new http\Client;
8 if (!$client->enableEvents())
9 throw new Exception("need events support");
10 } catch (Exception $e) {
11 die("skip ".$e->getMessage());
19 $request = new http\Client\Request("GET", "http://www.example.org/");
21 foreach (http\Client::getAvailableDrivers() as $driver) {
22 $client = new http\Client($driver);
23 $client->enableEvents(true);
24 $client->enqueue($request);
26 while ($client->once()) {
30 if (!$client->getResponse()) {