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

 add method pattern host args
 route request

Constructor & Destructor Documentation


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.


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: