| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 33 | public function stream(RequestInterface $request, array $options = []): CancellablePromiseInterface |
||
| 34 | { |
||
| 35 | return $this->client->request( |
||
| 36 | $request, |
||
| 37 | $options |
||
| 38 | )->then(function (ResponseInterface $response) { |
||
| 39 | return resolve(new StreamingResponse($response)); |
||
| 40 | }); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |