![]() |
![]()
| ![]() |
![]()
NAMEURI::Fetch::Response - Feed response for URI::Fetch SYNOPSISuse URI::Fetch; my $res = URI::Fetch->fetch('http://example.com/atom.xml') or die URI::Fetch->errstr; print $res->content; DESCRIPTIONURI::Fetch::Response encapsulates the response from fetching a feed using URI::Fetch. USAGE$res->contentThe contents of the feed. $res->uriThe 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. $res->etagThe ETag that was returned in the response, if any. $res->last_modifiedThe Last-Modified date (in seconds since the epoch) that was returned in the response, if any. $res->statusThe status of the response, which will match one of the following enumerations:
$res->http_statusThe HTTP status code from the response. $res->http_responseThe HTTP::Response object returned from the fetch. $res->is_success$res->is_redirect$res->is_errorWrappers around the "$res->response" methods 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_success" will return true, because "res->content" is usable. $res->content_typeThe Content-Type header from the response. AUTHOR & COPYRIGHTPlease see the URI::Fetch manpage for author, copyright, and license information.
|