Méthode | 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 |
Méthode | Description | |
---|---|---|
OnError ( RoutingErrorType errorType, string message, |
Méthode | 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 | |
Résultat |
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 |
Résultat |
protected OnError ( RoutingErrorType errorType, string message, |
||
errorType | RoutingErrorType | |
message | string | |
request | ||
Résultat | void |
public Remove ( |
||
routeMapper | ||
Résultat | bool |