|
NAMEHTTP::Router::Route - Route Representation for HTTP::Router SYNOPSIS 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);
METHODSmatch($req)Returns a HTTP::Router::Match object, or "undef" if route does not match a given request. append_path($path)Appends path to route. add_params($params)Adds parameters to route. add_conditions($conditions)Adds conditions to route. extract($path)Extracts variable values from $path, and returns variable hash. uri_for($args?)Returns a path which is processed with parameters. PROPERTIESpathPath string for route. paramsRoute specific parameters. conditionsConditions for determining route. templatesURI::Template::Restrict representation with route path. partsSize of splitting route path with slash. variablesVariable names in route path. AUTHORNAKAGAWA Masaki <masaki@cpan.org> LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOHTTP::Router
|