optionsMethodHandler

private fnHTTPServerRequestDelegate optionsMethodHandler(RouteRange)(RouteRange routes, RestInterfaceSettings settings = null)

Generate an handler that will wrap the server's method

This function returns an handler that handles the http OPTIONS method.

It will return the ALLOW header with all the methods on this resource And it will handle Preflight CORS.

Parameters

routesa range of Routes were each route has the same resource/URI just different method.
settingsREST server configuration.

Returns

A delegate suitable to use as an handler for an HTTP request.