1 <?php
2
3 /**
4 * ArangoDB PHP client: HTTP Request Interface
5 *
6 * @author Frank Mayer
7 * @copyright Copyright 2013-2015, FRANKMAYER.NET, Athens, Greece
8 */
9
10 namespace frankmayer\ArangoDbPhpCore\Protocols\Http;
11
12 use frankmayer\ArangoDbPhpCore\Protocols\RequestInterface;
13
14
15 /**
16 * An HttpRequest Interface
17 *
18 * @package frankmayer\ArangoDbPhpCore\Protocols\Http
19 */
20 interface HttpRequestInterface extends
21 RequestInterface
22 {
23 /**
24 * Method to send an HTTP request.
25 * All request should be done through this method. Any async or batch handling is done within this method.
26 *
27 * @return HttpResponse Http Response object
28 */
29 public function send();
30
31
32 /**
33 * Method to an HTTP batch request
34 *
35 * @param array $batchParts
36 * @param string $boundary
37 *
38 * @return mixed
39 */
40 public function sendBatch($batchParts = [], $boundary = 'XXXbXXX');
41 }
42