Skip to content

Remove send requests #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions spec/Exception/BatchExceptionSpec.php

This file was deleted.

103 changes: 0 additions & 103 deletions src/BatchResult.php

This file was deleted.

39 changes: 0 additions & 39 deletions src/Exception/BatchException.php

This file was deleted.

18 changes: 0 additions & 18 deletions src/HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,4 @@ interface HttpClient
* @throws Exception
*/
public function sendRequest(RequestInterface $request);

/**
* Sends several PSR-7 requests.
*
* If the client is able to, these requests should be sent in parallel. Otherwise they will be sent sequentially.
* Either way, the caller may not rely on them being executed in any particular order.
*
* If one or more requests led to an exception, the BatchException is thrown. The BatchException gives access to the
* BatchResult that contains responses for successful calls and exceptions for unsuccessful calls.
*
* @param RequestInterface[] $requests
*
* @return BatchResult If all requests where successful.
*
* @throws Exception On general setup problems.
* @throws BatchException If one or more requests led to exceptions.
*/
public function sendRequests(array $requests);
}