NAME

HTTP::ProxyPAC::Result - Result object from HTTP::ProxyPAC find_proxy

SYNOPSIS

my $pac = HTTP::ProxyPAC->new($url);
my $res = $pac->find_proxy('http://www.google.com/');

$res->direct;
$res->proxy;
$res->socks;

DESCRIPTION

HTTP::ProxyPAC::Result is the class of the result object from the find_proxy method of HTTP::ProxyPAC.

METHODS

direct

Boolean to indicate whether the result is DIRECT or not.

proxy

URI object for the proxy server URL if the result is PROXY, otherwise undef.

socks

URI object for the socks server URL if the result is SOCKS, otherwise undef.

AUTHOR

Tatsuhiko Miyagawa

SEE ALSO

HTTP::ProxyPAC