PushedResponse.php 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\HttpClient\Internal;
  11. use Symfony\Component\HttpClient\Response\CurlResponse;
  12. /**
  13. * A pushed response with its request headers.
  14. *
  15. * @author Alexander M. Turek <me@derrabus.de>
  16. *
  17. * @internal
  18. */
  19. final class PushedResponse
  20. {
  21. public $response;
  22. /** @var string[] */
  23. public $requestHeaders;
  24. public $parentOptions = [];
  25. public $handle;
  26. public function __construct(CurlResponse $response, array $requestHeaders, array $parentOptions, $handle)
  27. {
  28. $this->response = $response;
  29. $this->requestHeaders = $requestHeaders;
  30. $this->parentOptions = $parentOptions;
  31. $this->handle = $handle;
  32. }
  33. }