
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->new("http://example.com/foo.xml")); print $uri->path; # "/path/to/resource" print $uri->extension; # "html" print $uri->platonic; # "http://example.com/path/to/resource" print $uri->distinct; # "http://example.com/path/to/resource.html" $uri->extension('xml'); print $uri->distinct; # "http://example.com/path/to/resource.xml" $uri->path('/path/to/another'); print $uri->platonic; # "http://example.com/path/to/another" print $uri->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.
