1URI::Fetch::Response(3)User Contributed Perl DocumentatioUnRI::Fetch::Response(3)
2
3
4

NAME

6       URI::Fetch::Response - Feed response for URI::Fetch
7

SYNOPSIS

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

DESCRIPTION

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

USAGE

19       $res->content
20
21       The contents of the feed.
22
23       $res->uri
24
25       The URI of the feed. If the feed was moved, this reflects the new URI;
26       otherwise, it will match the URI that you passed to fetch.
27
28       $res->etag
29
30       The ETag that was returned in the response, if any.
31
32       $res->last_modified
33
34       The Last-Modified date (in seconds since the epoch) that was returned
35       in the response, if any.
36
37       $res->status
38
39       The status of the response, which will match one of the following enu‐
40       merations:
41
42       * URI::Fetch::URI_OK()
43       * URI::Fetch::URI_MOVED_PERMANENTLY()
44       * URI::Fetch::URI_GONE()
45       * URI::Fetch::URI_NOT_MODIFIED()
46
47       $res->http_status
48
49       The HTTP status code from the response.
50
51       $res->http_response
52
53       The HTTP::Response object returned from the fetch.
54
55       $res->is_success
56
57       $res->is_redirect
58
59       $res->is_error
60
61       Wrappers around the "$res->response" methods of the same name, for con‐
62       venience.
63
64       $res->content_type
65
66       The Content-Type header from the response.
67
69       Please see the URI::Fetch manpage for author, copyright, and license
70       information.
71
72
73
74perl v5.8.8                       2007-05-27           URI::Fetch::Response(3)
Impressum