Path::Dispatcher::Path - path and some optional metadata
my $path = Path::Dispatcher::Path->new( path => "/REST/Ticket/1", metadata => { http_method => "DELETE", }, ); $path->path; # /REST/Ticket/1 $path->get_metadata("http_method"); # DELETE
A string representing the path. Path::Dispatcher::Path is basically a boxed string. :)
Path::Dispatcher::Path
A hash representing arbitrary metadata. The Path::Dispatcher::Rule::Metadata rule is designed to match against members of this hash.
To install Path::Dispatcher, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Path::Dispatcher
CPAN shell
perl -MCPAN -e shell install Path::Dispatcher
For more information on module installation, please visit the detailed CPAN module installation guide.