uawdijnntqw1x1x1
IP : 216.73.216.5
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
.
/
apps
/
craft4-newsite-space
/
.
/
vendor
/
symfony
/
http-client
/
AsyncDecoratorTrait.php
/
/
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpClient; use Symfony\Component\HttpClient\Response\AsyncResponse; use Symfony\Component\HttpClient\Response\ResponseStream; use Symfony\Contracts\HttpClient\ResponseInterface; use Symfony\Contracts\HttpClient\ResponseStreamInterface; /** * Eases with processing responses while streaming them. * * @author Nicolas Grekas <p@tchwork.com> */ trait AsyncDecoratorTrait { use DecoratorTrait; /** * {@inheritdoc} * * @return AsyncResponse */ abstract public function request(string $method, string $url, array $options = []): ResponseInterface; /** * {@inheritdoc} */ public function stream(ResponseInterface|iterable $responses, float $timeout = null): ResponseStreamInterface { if ($responses instanceof AsyncResponse) { $responses = [$responses]; } return new ResponseStream(AsyncResponse::stream($responses, $timeout, static::class)); } }
/srv/users/craft4/./apps/craft4-newsite-space/./vendor/symfony/http-client/AsyncDecoratorTrait.php