18 __DIR__ .
'/../vendor/autoload.php',
19 __DIR__ .
'/../../../autoload.php',
20 __DIR__ .
'/vendor/autoload.php',
25 if (file_exists(
$path)) {
35for (
$i = 0;
$i < 1000;
$i++) {
43 echo
"$i -> " .
$response->getStatus() .
"\n";
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
An exception for terminatinating execution or to throw for unit testing.
A rudimentary HTTP client.
The Request class represents a single HTTP request.