diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 4415f295..9b3306f2 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -134,6 +134,7 @@ You can also use the `sendAsync()` and `requestAsync()` methods of a client: $headers = ['X-Foo' => 'Bar']; $body = 'Hello!'; $request = new Request('HEAD', 'http://httpbin.org/head', $headers, $body); + $promise = $client->sendAsync($request); // Or, if you don't need to pass in a request instance: $promise = $client->requestAsync('GET', 'http://httpbin.org/get');