Skip to content

Commit 3ac213a

Browse files
Update README.md
1 parent f68248e commit 3ac213a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ require_once('vendor/autoload.php');
3131

3232
use Async\Http\AsyncHttpClient;
3333

34+
$url = 'https://jsonplaceholder.typicode.com/posts';
35+
3436
$client = new AsyncHttpClient();
35-
foreach ($client->get('https://jsonplaceholder.typicode.com/posts/1') as $response) {
37+
foreach ($client->get($url) as $response) {
3638
echo $response->getBody();
3739
}
3840
```

0 commit comments

Comments
 (0)