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.
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.
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.