Skip to content

Commit cddba6f

Browse files
committed
Merge pull request #75 from php-http/remove_send_requests
Remove send requests
2 parents 4d396f0 + fbc001c commit cddba6f

File tree

4 files changed

+0
-196
lines changed

4 files changed

+0
-196
lines changed

spec/Exception/BatchExceptionSpec.php

-36
This file was deleted.

src/BatchResult.php

-103
This file was deleted.

src/Exception/BatchException.php

-39
This file was deleted.

src/HttpClient.php

-18
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,4 @@ interface HttpClient
2525
* @throws Exception
2626
*/
2727
public function sendRequest(RequestInterface $request);
28-
29-
/**
30-
* Sends several PSR-7 requests.
31-
*
32-
* If the client is able to, these requests should be sent in parallel. Otherwise they will be sent sequentially.
33-
* Either way, the caller may not rely on them being executed in any particular order.
34-
*
35-
* If one or more requests led to an exception, the BatchException is thrown. The BatchException gives access to the
36-
* BatchResult that contains responses for successful calls and exceptions for unsuccessful calls.
37-
*
38-
* @param RequestInterface[] $requests
39-
*
40-
* @return BatchResult If all requests where successful.
41-
*
42-
* @throws Exception On general setup problems.
43-
* @throws BatchException If one or more requests led to exceptions.
44-
*/
45-
public function sendRequests(array $requests);
4628
}

0 commit comments

Comments
 (0)