VibrantRouter.Match

Matches a path and method type using a delegate callback.

  1. void Match(HTTPMethod method, string path, Result function(HTTPServerRequest, HTTPServerResponse) callback)
  2. void Match(HTTPMethod method, string path, string contentType, Result function(HTTPServerRequest, HTTPServerResponse) callback)
  3. void Match(HTTPMethod method, string path, Result delegate(HTTPServerRequest, HTTPServerResponse) callback)
  4. void Match(HTTPMethod method, string path, string contentType, Result delegate(HTTPServerRequest, HTTPServerResponse) callback)
    class VibrantRouter(bool GenerateAll = false)
    void
    Match
    (
    Result
    )
    (
    HTTPMethod method
    ,
    string path
    ,,
    Result delegate
    (
    HTTPServerRequest
    ,
    HTTPServerResponse
    )
    callback
    )
    if (
    isValidResultType!Result
    )
  5. template Match(Temp)

Parameters

method HTTPMethod

The HTTP method matched.

path string

The path assigned to this route.

contentType string

The content type header to include in the response.

callback Result delegate
(
HTTPServerRequest
,
HTTPServerResponse
)

A delegate callback handler for the route.

Meta