GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTTP::ROUTER::ROUTE (3)

.ds Aq ’

NAME

HTTP::Router::Route - Route Representation for HTTP::Router

CONTENTS

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);



METHODS

    match($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.

PROPERTIES

    path

Path string for route.

    params

Route specific parameters.

    conditions

Conditions for determining route.

    templates

URI::Template::Restrict representation with route path.

    parts

Size of splitting route path with slash.

    variables

Variable names in route path.

AUTHOR

NAKAGAWA Masaki <masaki@cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

HTTP::Router
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTTP::ROUTER::ROUTE (3) 2010-03-18

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.