optionsMethodHandler
private fn
HTTPServerRequestDelegate 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
routes | a range of Routes were each route has the same resource/URI just different method. |
settings | REST server configuration. |
Returns
A delegate suitable to use as an handler for an HTTP request.