27 May 2021 16:36:04 UTC
- Distribution: URI-Fetch
- Module version: 0.15
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (251 / 0 / 0)
- KwaliteeBus factor: 1
- 26.84% Coverage
- License: perl_5
- Perl: v5.8.1
- Activity24 month
- Download (16.41KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionNEILB Neil Bowersand 1 contributors
- Benjamin Trott
- AUTHOR & COPYRIGHT
URI::Fetch::Response - Feed response for URI::Fetch
use URI::Fetch; my $res = URI::Fetch->fetch('http://example.com/atom.xml') or die URI::Fetch->errstr; print $res->content;
URI::Fetch::Response encapsulates the response from fetching a feed using URI::Fetch.
The contents of the feed.
The URI of the feed. If the feed was moved, this reflects the new URI; otherwise, it will match the URI that you passed to fetch.
The ETag that was returned in the response, if any.
The Last-Modified date (in seconds since the epoch) that was returned in the response, if any.
The status of the response, which will match one of the following enumerations:
The HTTP status code from the response.
The HTTP::Response object returned from the fetch.
Wrappers around the
$res->responsemethods of the same name, for convenience.
Note: there is one difference from the behaviour of HTTP::Response. If you are using a cache and get a 304 response, but the data is retrieved from the cache, then
is_successwill return true, because
The Content-Type header from the response.
Please see the URI::Fetch manpage for author, copyright, and license information.