The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TaskPipe::UserAgentManager_ProxyNet - base class for proxying useragents

DESCRIPTION

"Proxynet" useragents are ones that can change IP. If you are creating a useragent that can do this, it is suggested that you inherit from this class. A suggested basic format for your useragent package is as follows:

    package TaskPipe::UserAgentManager_ProxyNet_MyProxySystem;

    use Moose;
    extends 'TaskPipe::UserAgentManager_ProxyNet';

    sub init {
        my ($self) = @_;

        # do any initialisation
    }

    sub change_ip{
        my ($self) = @_;

        # do what is needed
        # to change the proxy ip
    }

    sub before_request{
        my ($self,$method,@param) = @_;

        # do something before each request?
    }

    sub after_request{
        my ($self,$resp,$method,@params) = @_;

        # do something after each request?
    }

    __PACKAGE__->meta->make_immutable;
    1;

AUTHOR

Tom Gracey <tomgracey@gmail.com>

COPYRIGHT AND LICENSE

Copyright (c) Tom Gracey 2018

TaskPipe is free software, licensed under

    The GNU Public License Version 3