HTTP::Router::Route - Route Representation for HTTP::Router
use HTTP::Router; use HTTP::Router::Route; my $router = HTTP::Router->new; my $route = HTTP::Router::Route->new( path => '/', conditions => { method => 'GET' }, params => { controller => 'Root', action => 'index' }, ); $router->add_route($route);
Returns a HTTP::Router::Match object, or undef if route does not match a given request.
undef
Appends path to route.
Adds parameters to route.
Adds conditions to route.
Extracts variable values from $path, and returns variable hash.
Returns a path which is processed with parameters.
Path string for route.
Route specific parameters.
Conditions for determining route.
URI::Template::Restrict representation with route path.
Size of splitting route path with slash.
Variable names in route path.
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.
HTTP::Router
To install HTTP::Router, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Router
CPAN shell
perl -MCPAN -e shell install HTTP::Router
For more information on module installation, please visit the detailed CPAN module installation guide.