From aa5b807560eb4c5d0ef6ff9e7cbeb02a1c587223 Mon Sep 17 00:00:00 2001 From: Hannes Van De Vreken Date: Sat, 6 Jan 2018 18:37:08 +0100 Subject: [PATCH] Missing sendAsync call (#1985) * Missing sendAsync call * Fixed response -> promise --- docs/quickstart.rst | 1 + 1 file changed, 1 insertion(+) 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');