| 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\Component\HttpClient\Internal; |
| 13 |
|
| 14 |
use Symfony\Component\HttpClient\Response\CurlResponse; |
| 15 |
|
| 16 |
/** |
| 17 |
* A pushed response with its request headers. |
| 18 |
* |
| 19 |
* @author Alexander M. Turek <[email protected]> |
| 20 |
* |
| 21 |
* @internal |
| 22 |
*/ |
| 23 |
final class PushedResponse |
| 24 |
{ |
| 25 |
public $response; |
| 26 |
|
| 27 |
/** @var string[] */ |
| 28 |
public $requestHeaders; |
| 29 |
|
| 30 |
public $parentOptions = []; |
| 31 |
|
| 32 |
public $handle; |
| 33 |
|
| 34 |
public function __construct(CurlResponse $response, array $requestHeaders, array $parentOptions, $handle) |
| 35 |
{ |
| 36 |
$this->response = $response; |
| 37 |
$this->requestHeaders = $requestHeaders; |
| 38 |
$this->parentOptions = $parentOptions; |
| 39 |
$this->handle = $handle; |
| 40 |
} |
| 41 |
} |
| 42 |
|