Daisuke Maki > GunghoX-FollowLinks > GunghoX::FollowLinks::Rule::URI

Download:
GunghoX-FollowLinks-0.00006.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

GunghoX::FollowLinks::Rule::URI - Follow Dependig On URI

SYNOPSIS ^

  use GunghoX::FollowLinks::Rule qw(FOLLOW_ALLOW FOLLOW_DENY);
  use GunghoX::FollowLinks::Rule::URI;

  GunghoX::FollowLinks::Rule::URI->new(
    match => [
      { action => FOLLOW_DENY,  host => qr/^.+\.example\.org$/ },
      { action => FOLLOW_ALLOW, host => qr/^.+\.example\.com$/ },
      {
        action         => FOLLOW_ALLOW,
        action_nomatch => FOLLOW_DENY,
        host           => qr/^.+\.example\.net$/ }
      }
    ]
  );

DESCRIPTION ^

This is a rule that matches against a URL using URI::Match.

METHODS ^

new

apply

syntax highlighting: