VibrantRouter.Any

Adds a handler for all method types on the given path.

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

Parameters

path string

The path that gets handled.

callback Result delegate
(
HTTPServerRequest
,
HTTPServerResponse
)

The handler that gets called for requests.

Meta