File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,13 @@ interface HttpAsyncClient
15
15
/**
16
16
* Sends a PSR-7 request in an asynchronous way.
17
17
*
18
+ * Exceptions related to processing the request are available from the returned Promise.
19
+ *
18
20
* @param RequestInterface $request
19
21
*
20
22
* @return Promise
23
+ *
24
+ * @throws \Exception If processing the request is impossible (eg. bad configuration).
21
25
*/
22
26
public function sendAsyncRequest (RequestInterface $ request );
23
27
}
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ interface HttpClient
21
21
*
22
22
* @return ResponseInterface
23
23
*
24
- * @throws Exception
24
+ * @throws \Http\Client\Exception If an error happens during processing the request.
25
+ * @throws \Exception If processing the request is impossible (eg. bad configuration).
25
26
*/
26
27
public function sendRequest (RequestInterface $ request );
27
28
}
You can’t perform that action at this time.
0 commit comments