SYNOPSIS

    use URI::Fetch;
    my $res = URI::Fetch->fetch('http://example.com/atom.xml')
        or die URI::Fetch->errstr;
    print $res->content;

DESCRIPTION

URI::Fetch::Response encapsulates the response from fetching a feed using URI::Fetch.

USAGE

The contents of the feed. The \s-1URI\s0 of the feed. If the feed was moved, this reflects the new \s-1URI\s0; otherwise, it will match the \s-1URI\s0 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:

  • URI::Fetch::URI_OK()

  • URI::Fetch::URI_MOVED_PERMANENTLY()

  • URI::Fetch::URI_GONE()

  • URI::Fetch::URI_NOT_MODIFIED() The \s-1HTTP\s0 status code from the response. The HTTP::Response object returned from the fetch. Wrappers around the \*(C`$res->response\*(C' methods of the same name, for convenience. The Content-Type header from the response.

AUTHOR & COPYRIGHT

Please see the URI::Fetch manpage for author, copyright, and license information.