Skip to content

Commit 544e02a

Browse files
committed
Merge pull request #31 from php-http/configurable_adapter
Adds configurable HTTP adapter interface
2 parents c22c46b + 3420104 commit 544e02a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/HttpAdapter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,27 @@ interface HttpAdapter
2323
* Sends a PSR request
2424
*
2525
* @param RequestInterface $request
26+
* @param array $options
2627
*
2728
* @return ResponseInterface
2829
*
2930
* @throws \InvalidArgumentException
3031
* @throws Exception\HttpAdapterException
3132
*/
32-
public function sendRequest(RequestInterface $request);
33+
public function sendRequest(RequestInterface $request, array $options = []);
3334

3435
/**
3536
* Sends PSR requests
3637
*
3738
* @param RequestInterface[] $requests
39+
* @param array $options
3840
*
3941
* @return ResponseInterface[]
4042
*
4143
* @throws \InvalidArgumentException
4244
* @throws Exception\MultiHttpAdapterException
4345
*/
44-
public function sendRequests(array $requests);
46+
public function sendRequests(array $requests, array $options = []);
4547

4648
/**
4749
* Returns the name

0 commit comments

Comments
 (0)