| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <[email protected]> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Symfony\Contracts\HttpClient; |
| 13 | |
| 14 | /** |
| 15 | * Yields response chunks, returned by HttpClientInterface::stream(). |
| 16 | * |
| 17 | * @author Nicolas Grekas <[email protected]> |
| 18 | * |
| 19 | * @extends \Iterator<ResponseInterface, ChunkInterface> |
| 20 | */ |
| 21 | interface ResponseStreamInterface extends \Iterator |
| 22 | { |
| 23 | public function key(): ResponseInterface; |
| 24 | |
| 25 | public function current(): ChunkInterface; |
| 26 | } |