NAME

Dezi::Aggregator::Spider::Response - spider response

SYNOPSIS

 use Dezi::Aggregator::Spider::UA;
 my $ua = Dezi::Aggregator::Spider::UA->new;
 my $response = $ua->get('http://swish-e.org/');
 my $http_response = $response->http_response;

 # $ua isa LWP::RobotUA subclass
 # $response isa Dezi::Aggregator::Spider::Response
 # $http_response isa HTTP::Response

DESCRIPTION

Dezi::Aggregator::Spider::Response wraps the HTTP::Response class and provides some convenience methods.

METHODS

BUILD

Setup method.

http_response

Returns internal HTTP::Response object.

success

Shortcut for $response->http_response->is_success.

status

Shortcut for $response->http_response->code.

ct

Shortcut for $response->response->header('content-type'). Any encoding will be stripped from the returned string.

is_html

Returns true if ct() looks like HTML or XHTML.

content

Shortcut for $response->http_response->decoded_content.

Returns array of href targets in content(). Parsed using HTML::LinkExtor.

Set hashref of tags considered valid "links". Used by the links() method.

title

Returns document title, verifying that UTF-8 flag is set correctly on the response content.

AUTHOR

Peter Karman, <perl@peknet.com>

BUGS

Please report any bugs or feature requests to bug-swish-prog at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-App. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Dezi

You can also look for information at:

COPYRIGHT AND LICENSE

Copyright 2008-2018 by Peter Karman

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

http://swish-e.org/