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

Parameters

path string

The path that gets handled.

contentType string

The content type header to include in the response.

callback Result function
(
HTTPServerRequest
,
HTTPServerResponse
)

The handler that gets called for requests.

Meta