12 class Observer implements SplObserver
14 function update(SplSubject $client, http\Client\Request $request = null, StdClass $progress = null) {
16 if ($client->getProgressInfo($request) != $progress) {
22 $observer = new Observer;
23 $request = new http\Client\Request("GET", "http://www.example.org/");
25 foreach (http\Client::getAvailableDrivers() as $driver) {
26 $client = new http\Client($driver);
27 $client->attach($observer);
28 $client->enqueue($request);