Amp\Artax\HttpSocketPool::__construct PHP Method

__construct() public method

public __construct ( SocketPool $sockPool = null, HttpTunneler $tunneler = null )
$sockPool SocketPool
$tunneler HttpTunneler
    public function __construct(SocketPool $sockPool = null, HttpTunneler $tunneler = null)
    {
        $this->sockPool = $sockPool ?: new SocketPool();
        $this->tunneler = $tunneler ?: new HttpTunneler();
        $this->autoDetectProxySettings();
    }