Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Routing

Marek Fišera edited this page Jan 7, 2015 · 1 revision

Routing module dispatches HTTP requests to registered handlers based on the registration parameters. For now, is supporteds only URL routing, but we are planning to support routing based on other request parameters (HTTP method, query string parameters and HTTP headers).

Routes are registered to instance of the RouteRequestHandler using Map method:

routeTable.Map("~/hello", new HelloRequestHandler());

The URL pattern passed as the first argument can be virtual path (starting with ~/), absolute URL (eg. http://www.example.com/hello) or schema less URL (eg. //www.example.com/hello). So, routing module supports domain dispatching.

Clone this wiki locally