
URI::Platonic - Platonic and Distinct URIs

use URI::Platonic; my $uri = URI::Platonic->new(uri => "http://example.com/path/to/resource.html"); $uri = URI::Platonic->new(uri => $uri); print $platonic->path; # "/path/to/resource" print $platonic->extension; # "html" print $platonic->platonic; # "http://example.com/path/to/resource" print $platonic->distinct; # "http://example.com/path/to/resource.html" $platonic->extension('xml'); print $platonic->distinct; # "http://example.com/path/to/resource.xml" $platonic->path('/path/to/another'); print $platonic->platonic; # "http://example.com/path/to/another" print $platonic->distinct; # "http://example.com/path/to/another.xml"

URI::Platonic is a URI-like module for "Platonic" and "Distinct" URIs, described in RESTful Web Services.

Constructs a new URI::Platonic object.
Gets/Sets a extension part of the distinct URI.
Returns a platonic URI.
Returns a distinct URI.
Returns a copy of the URI::Platonic object.
Returns a normalized version of the URI::Platonic object.
Returns a plain string of the platonic URI.


NAKAGAWA Masaki <masaki@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
