-(new http\Request\Factory(array("persistentHandleId" => "foo")))
- ->createRequest("http://dev.iworks.at")
+$f = new http\Client\Factory(array("persistentHandleId" => "foo"));
+$r = $f->createClient()->setRequest(new http\Client\Request("GET", "http://dev.iworks.at"))
- ->send();
-$r = (new http\Request\Factory(array("persistentHandleId" => "bar")))
- ->createRequest("http://dev.iworks.at")
+ ->send(null);
+$f = new http\Client\Factory(array("persistentHandleId" => "bar"));
+$r = $f->createClient()->setRequest(new http\Client\Request("GET", "http://dev.iworks.at"))
->setOptions(array("connecttimeout"=> 90, "timeout" =>300));
var_dump(http\Env::statPersistentHandles());
http\Env::cleanPersistentHandles();
var_dump(http\Env::statPersistentHandles());
->setOptions(array("connecttimeout"=> 90, "timeout" =>300));
var_dump(http\Env::statPersistentHandles());
http\Env::cleanPersistentHandles();
var_dump(http\Env::statPersistentHandles());