<?php
namespace Magento\Framework\HTTP\Client\Curl;

/**
 * Interceptor class for @see \Magento\Framework\HTTP\Client\Curl
 */
class Interceptor extends \Magento\Framework\HTTP\Client\Curl implements \Magento\Framework\Interception\InterceptorInterface
{
    use \Magento\Framework\Interception\Interceptor;

    public function __construct($sslVersion = null)
    {
        $this->___init();
        parent::__construct($sslVersion);
    }

    /**
     * {@inheritdoc}
     */
    public function get($uri)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'get');
        return $pluginInfo ? $this->___callPlugins('get', func_get_args(), $pluginInfo) : parent::get($uri);
    }

    /**
     * {@inheritdoc}
     */
    public function post($uri, $params)
    {
        $pluginInfo = $this->pluginList->getNext($this->subjectType, 'post');
        return $pluginInfo ? $this->___callPlugins('post', func_get_args(), $pluginInfo) : parent::post($uri, $params);
    }
}
