C# 클래스 WatsonWebserver.DynamicRoute

Assign a method handler for when requests are received matching the supplied method and path regex.
파일 보기 프로젝트 열기: jchristn/WatsonWebserver 1 사용 예제들

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