VibrantRouter.Match

Matches a path and method type using a function callback.

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

Parameters

method HTTPMethod

The HTTP method matched.

path string

The path assigned to this route.

callback Result function
(
HTTPServerRequest
,
HTTPServerResponse
)

A function callback handler for the route.

Meta