Any.Any

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

  1. void Any(string path, Temp function(HTTPServerRequest, HTTPServerResponse) callback, Result function(Temp) transformer)
  2. void Any(string path, string contentType, Temp function(HTTPServerRequest, HTTPServerResponse) callback, Result function(Temp) transformer)
    template Any(Temp)
    static if(!is(Temp == void))
    void
    Any
    (
    Result = string
    )
    (
    string path
    ,,
    Temp function
    (
    HTTPServerRequest
    ,
    HTTPServerResponse
    )
    callback
    ,
    Result function
    (
    Temp
    )
    transformer
    )
    if (
    isValidTransformedType!Result
    )
    if (
    isValidTransformedType!Result
    )
  3. void Any(string path, Temp delegate(HTTPServerRequest, HTTPServerResponse) callback, Result delegate(Temp) transformer)
  4. void Any(string path, string contentType, Temp delegate(HTTPServerRequest, HTTPServerResponse) callback, Result delegate(Temp) transformer)

Parameters

path string

The path that gets handled.

callback Temp function
(
HTTPServerRequest
,
HTTPServerResponse
)

The handler that gets called for requests.

transformer Result function
(
Temp
)

The transformer function that converts output.

Meta