File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ /*
4+ * This file is part of the Http Adapter package.
5+ *
6+ * (c) Eric GELOEN <geloen.eric@gmail.com>
7+ *
8+ * For the full copyright and license information, please read the LICENSE
9+ * file that was distributed with this source code.
10+ */
11+
12+ namespace Http \Adapter ;
13+
14+ use Psr \Http \Message \RequestInterface ;
15+ use Psr \Http \Message \ResponseInterface ;
16+
17+ /**
18+ * @author GeLo <geloen.eric@gmail.com>
19+ */
20+ interface ConfigurableHttpAdapter extends HttpAdapter
21+ {
22+ /**
23+ * Sends a PSR request
24+ *
25+ * @param RequestInterface $request
26+ * @param array $options
27+ *
28+ * @return ResponseInterface
29+ *
30+ * @throws \InvalidArgumentException
31+ * @throws Exception\HttpAdapterException
32+ */
33+ public function sendRequest (RequestInterface $ request , array $ options = []);
34+
35+ /**
36+ * Sends PSR requests
37+ *
38+ * @param RequestInterface[] $requests
39+ * @param array $options
40+ *
41+ * @return ResponseInterface[]
42+ *
43+ * @throws \InvalidArgumentException
44+ * @throws Exception\MultiHttpAdapterException
45+ */
46+ public function sendRequests (array $ requests , array $ options = []);
47+ }
You can’t perform that action at this time.
0 commit comments