NAME

Pcore::API::ProxyPool::Proxy - Proxy lists management subsystem

SYNOPSIS

use Pcore::Proxy::Pool;

my $pool = Pcore::Proxy::Pool->new(
    {   source => [
            {   class => 'Tor',
                host  => '192.168.175.1',
                port  => 9050,
            },
            {   class   => 'List',
                proxies => [         #
                    'connect://107.153.45.156:80',
                    'connect://23.247.255.3:80',
                    'connect://23.247.255.2:80',
                    'connect://104.144.28.45:80',
                    'connect://107.173.180.52:80',
                    'connect://155.94.218.158:80',
                    'connect://155.94.218.160:80',
                    'connect://198.23.216.57:80',
                    'connect://172.245.109.210:80',
                    'connect://107.173.180.156:80',
                ],
            },
        ],
    }
);

$pool->get_proxy(
    ['connect', 'socks'],
    sub ($proxy = undef) {
        ...;

        return;
    }
);

DESCRIPTION