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