Method | Description | |
---|---|---|
Add ( string route, HTTPMethod methods, HandleRequestDelegate handlerMethod, bool acceptSubroutes = false ) : |
Adds a route handler for the specified route and HTTP methods, using a delegate. This is useful for quick, one-off serving of pages. For more complex cases, such as serving files from the file system, it is recommended to use the slightly more complex IHTTPRouteHandler interface.
|
|
Add ( string route, HTTPMethod methods, IHTTPRouteHandler handler ) : |
Adds a route handler for the specified route and HTTP methods, using a class that implements the IHTTPRouteHandler delegate.
|
|
Remove ( |
||
Remove ( string route ) : bool |
Method | Description | |
---|---|---|
OnError ( RoutingErrorType errorType, string message, |
Method | Description | |
---|---|---|
HandleRequest ( |
||
RouteSolver ( ) : System |
public Add ( string route, HTTPMethod methods, HandleRequestDelegate handlerMethod, bool acceptSubroutes = false ) : |
||
route | string | The route, for example "/hello_world" |
methods | HTTPMethod |
/// The HTTP Methods to support. HTTPMethod has the |
handlerMethod | HandleRequestDelegate | A method delegate. See |
acceptSubroutes | bool | |
return |
public Add ( string route, HTTPMethod methods, IHTTPRouteHandler handler ) : |
||
route | string | The route, for example "/hello_world" |
methods | HTTPMethod |
/// The HTTP Methods to support. HTTPMethod has the |
handler | IHTTPRouteHandler | An object which implements the |
return |
protected OnError ( RoutingErrorType errorType, string message, |
||
errorType | RoutingErrorType | |
message | string | |
request | ||
return | void |
public Remove ( |
||
routeMapper | ||
return | bool |