1 | <?php |
||
16 | class MailxpertStreamHttpClient implements MailxpertHttpClientInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var MailxpertStream Procedural stream wrapper as object. |
||
20 | */ |
||
21 | protected $mailxpertStream; |
||
22 | |||
23 | /** |
||
24 | * @param MailxpertStream|null $mailxpertStream Procedural stream wrapper as object. |
||
25 | */ |
||
26 | public function __construct(MailxpertStream $mailxpertStream = null) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function send($url, $method, $body, array $headers, $timeOut) |
||
58 | |||
59 | /** |
||
60 | * Formats the headers for use in the stream wrapper. |
||
61 | * |
||
62 | * @param array $headers The request headers. |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | public function compileHeader(array $headers) |
||
75 | } |
||
76 |