Version 0.1
A very serious, industrial web framework in Tcl
 All Data Structures Namespaces Files Functions Variables Pages
Data Structures | Public Member Functions
tanzer::router Class Reference

Data Structures

class  entry
 

Public Member Functions

 constructor
 
 add method pattern host args
 
 entries
 
 route request
 

Constructor & Destructor Documentation

tanzer::router::constructor

Create a new, empty routing table.

Member Function Documentation

tanzer::router::add   method pattern host args  

Add a new route with method $method for URI pattern $pattern, host regex $host, and request handler $args to the routing table.

tanzer::router::entries

Return a list of the current routing table entries.

tanzer::router::route   request  

Search through the route entries for a route that matches $request. If no suitable router entry can be matched to the request specified, then throw a 404 error.


The documentation for this class was generated from the following file: