NAME
XRDS::Simple - discovery, fetch and parse Resource Description Document by using XRDS-Simple
SYNOPSIS
use XRDS::Simple;
my $client = XRDS::Simple->new;
# discovery
my $uri = $client->discovery('http://www.example.com/')
or warn XRDS::Simple->errstr;
# fetch
my $xml = $client->fetch($uri)
or warn XRDS::Simple->errstr;
# parse to HASH
my $obj = $client->parse($xml)
or warn XRDS::Simple->errstr;
# discovery, fetch, and parse to HASH
my $obj = $client->process('http://www.example.com/')
or warn XRDS::Simple->errstr;
DESCRIPTION
XRDS::Simple is a consumer of XRDS-Simple.
METHODS
new
see Moose
meta
see Moose
discovery
return URI of Resource Description Document.
fetch
return content of Resource Description Document.
parse
return HASH which Resource Description Document is parsed.
process
return HASH which Resource Description Document is parsed. this method run all (discovery, fetch and parse).
ua
return user agent object. (Default: LWP::UserAgent)
AUTHOR
Takatsugu Shigeta <shigeta@cpan.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
XRDS-Simple 1.0 Draft http://xrds-simple.net/core/1.0/