11 include "helper/server.inc";
15 class Observer implements SplObserver
17 function update(SplSubject $client, http\Client\Request $request = null, StdClass $progress = null) {
19 if ($client->getProgressInfo($request) != $progress) {
25 server("proxy.inc", function($port, $stdin, $stdout, $stderr) {
26 foreach (http\Client::getAvailableDrivers() as $driver) {
27 $client = new http\Client($driver);
28 $client->attach(new Observer);
29 $client->enqueue(new http\Client\Request("GET", "http://localhost:$port/"));