芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/www/vendor/php-http/client-common/src/HttpClientPool/HttpClientPool.php
clientPool[] = $client; } /** * Return an http client given a specific strategy. * * @return HttpClientPoolItem Return a http client that can do both sync or async * * @throws HttpClientNotFoundException When no http client has been found into the pool */ abstract protected function chooseHttpClient(): HttpClientPoolItem; /** * {@inheritdoc} */ public function sendAsyncRequest(RequestInterface $request) { return $this->chooseHttpClient()->sendAsyncRequest($request); } /** * {@inheritdoc} */ public function sendRequest(RequestInterface $request): ResponseInterface { return $this->chooseHttpClient()->sendRequest($request); } }