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

NAME

HTTP::ProxyPAC::Result - Result object for 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 a class to encapsulate result object from find_proxy method.

METHODS

direct

Boolean to indicate that the result is DIRECT or not.

proxy

URI object for the actual proxy server URL, if Result type is PROXY, otherwise undef.

socks

URI object for the actual socks server URL, if Result type is SOCKSn, otherwise undef.

AUTHOR

Tatsuhiko Miyagawa

SEE ALSO

HTTP::ProxyPAC