@@ -58,7 +58,7 @@ user lists by sending a (RESTful) HTTP API request for each user record:
5858
5959``` php
6060$loop = React\EventLoop\Factory::create();
61- $browser = new Clue\ React\Buzz \Browser($loop);
61+ $browser = new React\Http \Browser($loop);
6262
6363$concurrency = isset($argv[1]) ? $argv[1] : 3;
6464
@@ -182,13 +182,13 @@ async operations that use a [Promise](https://github.com/reactphp/promise)-based
182182You can use this to concurrently run multiple HTTP requests, database queries
183183or pretty much any API that already uses Promises.
184184
185- The demonstration purposes, the examples in this documentation use the async
186- HTTP client [ clue/reactphp-buzz ] ( https://github.com/clue/ reactphp-buzz ) .
185+ For demonstration purposes, the examples in this documentation use
186+ [ ReactPHP's async HTTP client] ( https://github.com/reactphp/http#client-usage ) .
187187Its API can be used like this:
188188
189189``` php
190190$loop = React\EventLoop\Factory::create();
191- $browser = new Clue\ React\Buzz \Browser($loop);
191+ $browser = new React\Http \Browser($loop);
192192
193193$promise = $browser->get($url);
194194```
@@ -198,7 +198,7 @@ like this:
198198
199199``` php
200200$loop = React\EventLoop\Factory::create();
201- $browser = new Clue\ React\Buzz \Browser($loop);
201+ $browser = new React\Http \Browser($loop);
202202
203203$transformer = new Transformer(10, function ($url) use ($browser) {
204204 return $browser->get($url);
@@ -313,7 +313,7 @@ given above:
313313
314314``` php
315315$loop = React\EventLoop\Factory::create();
316- $browser = new Clue\ React\Buzz \Browser($loop);
316+ $browser = new React\Http \Browser($loop);
317317
318318$transformer = new Transformer(10, function ($url) use ($browser) {
319319 return $browser->get($url);
@@ -440,7 +440,7 @@ on success.
440440
441441``` php
442442$loop = React\EventLoop\Factory::create();
443- $browser = new Clue\ React\Buzz \Browser($loop);
443+ $browser = new React\Http \Browser($loop);
444444
445445$promise = Transformer::all($input, 3, function ($data) use ($browser, $url) {
446446 return $browser->post($url, [], json_encode($data));
@@ -546,7 +546,7 @@ success.
546546
547547``` php
548548$loop = React\EventLoop\Factory::create();
549- $browser = new Clue\ React\Buzz \Browser($loop);
549+ $browser = new React\Http \Browser($loop);
550550
551551$promise = Transformer::any($input, 3, function ($data) use ($browser, $url) {
552552 return $browser->post($url, [], json_encode($data));
0 commit comments