18 __DIR__ .
'/../vendor/autoload.php',
19 __DIR__ .
'/../../../autoload.php',
20 __DIR__ .
'/vendor/autoload.php',
25 if (file_exists($path)) {
35 for (
$i = 0;
$i < 1000;
$i++) {
50 function($error) use (
$i) {
52 if ($error[
'status'] === Client::STATUS_CURLERROR) {
54 echo "$i -> curl error: " . $error[
'curl_errmsg'] .
"\n";
57 echo "$i -> " . $error[
'response']->getStatus() .
"\n";
foreach($paths as $path) $request
The Request class represents a single HTTP request.
This example demonstrates the ability for clients to work asynchronously.
A rudimentary HTTP client.