Dezi::Aggregator::Spider::Response - spider response
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
Dezi::Aggregator::Spider::Response wraps the HTTP::Response class and provides some convenience methods.
Setup method.
Returns internal HTTP::Response object.
Shortcut for $response->http_response->is_success.
Shortcut for $response->http_response->code.
Shortcut for $response->response->header('content-type'). Any encoding will be stripped from the returned string.
Returns true if ct() looks like HTML or XHTML.
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.
Returns document title, verifying that UTF-8 flag is set correctly on the response content.
Peter Karman, <perl@peknet.com>
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.
bug-swish-prog at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Dezi
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dezi-App
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dezi-App
CPAN Ratings
http://cpanratings.perl.org/d/Dezi-App
Search CPAN
http://search.cpan.org/dist/Dezi-App/
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.
http://swish-e.org/
To install Dezi::App, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dezi::App
CPAN shell
perl -MCPAN -e shell install Dezi::App
For more information on module installation, please visit the detailed CPAN module installation guide.