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)
    class VibrantRouter(bool GenerateAll = false)
    void
    Match
    (
    Result
    )
    (
    HTTPMethod method
    ,
    string path
    ,
    Result delegate
    (
    HTTPServerRequest
    ,
    HTTPServerResponse
    )
    callback
    )
    if (
    isValidResultType!Result
    )
  4. void Match(HTTPMethod method, string path, string contentType, Result delegate(HTTPServerRequest, HTTPServerResponse) callback)
  5. template Match(Temp)

Parameters

method HTTPMethod

The HTTP method matched.

path string

The path assigned to this route.

callback Result delegate
(
HTTPServerRequest
,
HTTPServerResponse
)

A delegate callback handler for the route.

Meta