Skip to content

Commit

Permalink
Merge pull request #61 from php-http/dbu-patch-1
Browse files Browse the repository at this point in the history
fix namespace for promise
  • Loading branch information
dbu committed Jan 2, 2016
2 parents 33c4aab + 86fb3c1 commit 2a38056
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/httplug/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ In both cases, the `Http\Client\HttpClient` provides a `sendRequest` method to s
and returns a PSR-7 `ResponseInterface`or throws an exception that implements `Http\Client\Exception`.

There is also the `Http\Client\HttpAsyncClient` which provides the `sendAsyncRequest` method to send
a request asynchronously and returns a `Http\Client\Promise`.
a request asynchronously and returns a `Http\Promise\Promise`.

The promise allows to specify handlers for a PSR-7 `ResponseInterface`
or an exception that implements `Http\Client\Exception`.


<p class="text-warning">
Contract for the `Http\Client\Promise` is temporary until
Contract for the `Http\Promise\Promise` is temporary until
[PSR is released](https://groups.google.com/forum/?fromgroups#!topic/php-fig/wzQWpLvNSjs).
Once it is out, we will use this PSR in the main client and deprecate the old contract.
</p>
Expand All @@ -37,7 +37,7 @@ There are two kind of implementations:
- [php-http/client-implementation](https://packagist.org/providers/php-http/client-implementation):
the synchronous implementation that waits for the response / error before returning from the `sendRequest` method.
- [php-http/async-client-implementation](https://packagist.org/providers/php-http/async-client-implementation):
the asynchronous implementation that immediately returns a `Http\Client\Promise`,
the asynchronous implementation that immediately returns a `Http\Promise\Promise`,
allowing to send several requests in parallel and handling responses later.

Check links above for the full list of implementations.
Expand Down

0 comments on commit 2a38056

Please sign in to comment.