Gush\Helper\DownloadHelper::getGuzzleClient PHP Метод

getGuzzleClient() защищенный Метод

Returns the Guzzle client configured according to the system environment (e.g. it takes into account whether it should use a proxy server or not).
protected getGuzzleClient ( ) : Client
Результат GuzzleHttp\Client
    protected function getGuzzleClient()
    {
        $options = [];
        // Check if the client must use a proxy server.
        if (!empty($_SERVER['HTTP_PROXY']) || !empty($_SERVER['http_proxy'])) {
            $proxy = !empty($_SERVER['http_proxy']) ? $_SERVER['http_proxy'] : $_SERVER['HTTP_PROXY'];
            $options['proxy'] = $proxy;
        }
        return new Client($options);
    }