public function detectHttpClientHandler()
    {
        $handler = null;
        if (class_exists('GuzzleHttp\Client')) {
            $handler = new GuzzleHttpClient();
        } elseif (function_exists('curl_init')) {
            $handler = new CurlHttpClient();
        } else {
            $handler = new StreamHttpClient();
        }
        return $handler;
    }