Michael De La Rue > WWW-Link > WWW::Link::Tester

Download:
WWW-Link-0.036.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 1.14   Source  

NAME ^

WWW::Link::Tester - base class for link testers.

SYNOPSIS ^

    use WWW::Link::Tester
    $ua=create_a_user_agent();
    my $tester = new WWW::Link::Tester, $ua;
    $link=get_a_link_object();
    $tester->test_link($link);

DESCRIPTION ^

This class acts as a base for constructing link testing classes. It provides methods that are useful within those classes.

handle_response

handle_response is normally just the same as apply response. The extra level of indirection can be used where some responses aren't meant to directly affect the link.

apply_response

We have a response which should be used to affect the state of the link. This should only be called at the end of a chain of redirects, not for each member in the chain.

syntax highlighting: