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