1 | <?php declare(strict_types=1); |
||
13 | class StreamingRequestService |
||
14 | { |
||
15 | /** |
||
16 | * @var ClientInterface |
||
17 | */ |
||
18 | private $client; |
||
19 | |||
20 | /** |
||
21 | * @param ClientInterface $client |
||
22 | */ |
||
23 | public function __construct(ClientInterface $client) |
||
27 | |||
28 | /** |
||
29 | * @param RequestInterface $request |
||
30 | * @param array $options |
||
31 | * @return CancellablePromiseInterface |
||
32 | */ |
||
33 | public function stream(RequestInterface $request, array $options = []): CancellablePromiseInterface |
||
42 | } |
||
43 |