C# Class WatsonWebserver.DynamicRoute

Assign a method handler for when requests are received matching the supplied method and path regex.
Exibir arquivo Open project: jchristn/WatsonWebserver Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
DynamicRoute ( HttpMethod method, Regex path, Func handler, string guid = null, object metadata = null ) : System

Create a new route object.

Method Details

DynamicRoute() public method

Create a new route object.
public DynamicRoute ( HttpMethod method, Regex path, Func handler, string guid = null, object metadata = null ) : System
method HttpMethod The HTTP method, i.e. GET, PUT, POST, DELETE, etc.
path Regex The pattern against which the raw URL should be matched.
handler Func The method that should be called to handle the request.
guid string Globally-unique identifier.
metadata object User-supplied metadata.
return System