LeagueWrap\Client::buildGuzzle PHP Method

buildGuzzle() private method

private buildGuzzle ( $url, $handler = null )
    private function buildGuzzle($url, $handler = null)
    {
        $config = ['base_uri' => $url, 'defaults' => ['headers' => ['Accept-Encoding' => 'gzip,deflate']]];
        if (isset($handler)) {
            $config['handler'] = $handler;
        }
        return new Guzzle($config);
    }