C# Класс WatsonWebserver.DynamicRoute

Assign a method handler for when requests are received matching the supplied method and path regex.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
DynamicRoute ( HttpMethod method, Regex path, Func handler, string guid = null, object metadata = null ) : System

Create a new route object.

Описание методов

DynamicRoute() публичный Метод

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.
Результат System