Skip to content

Commit

Permalink
Missing sendAsync call (#1985)
Browse files Browse the repository at this point in the history
* Missing sendAsync call

* Fixed response -> promise
  • Loading branch information
hannesvdvreken authored and Nyholm committed Jan 6, 2018
1 parent 6befd20 commit aa5b807
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit aa5b807

Please sign in to comment.