C# Class NodeNetAsync.Net.Http.Router.HttpRouter

Inheritance: IHttpFilter
Show file Open project: soywiz/NodeNetAsync Class Usage Examples

Protected Properties

Property Type Description
Routes Dictionary>

Public Methods

Method Description
AddRoute ( string Path, Func Route ) : void
AddRoute ( string Path, IHttpFilter Route ) : void
FilterAsync ( HttpRequest Request, HttpResponse Response ) : System.Threading.Tasks.Task
RouteAsync ( HttpRequest Request, HttpResponse Response ) : System.Threading.Tasks.Task
SetDefaultRoute ( Func Route ) : void
SetDefaultRoute ( IHttpFilter Route ) : void

Method Details

AddRoute() public method

public AddRoute ( string Path, Func Route ) : void
Path string
Route Func
return void

AddRoute() public method

public AddRoute ( string Path, IHttpFilter Route ) : void
Path string
Route IHttpFilter
return void

FilterAsync() public method

public FilterAsync ( HttpRequest Request, HttpResponse Response ) : System.Threading.Tasks.Task
Request HttpRequest
Response HttpResponse
return System.Threading.Tasks.Task

RouteAsync() public method

public RouteAsync ( HttpRequest Request, HttpResponse Response ) : System.Threading.Tasks.Task
Request HttpRequest
Response HttpResponse
return System.Threading.Tasks.Task

SetDefaultRoute() public method

public SetDefaultRoute ( Func Route ) : void
Route Func
return void

SetDefaultRoute() public method

public SetDefaultRoute ( IHttpFilter Route ) : void
Route IHttpFilter
return void

Property Details

Routes protected property

protected Dictionary> Routes
return Dictionary>