options method
HttpRoute
options(
- String path,
- FutureOr callback(
- HttpRequest req,
- HttpResponse res
- List<
FutureOr Function(HttpRequest req, HttpResponse res)> middleware = const [],
Create an options route
Implementation
HttpRoute options(String path, FutureOr Function(HttpRequest req, HttpResponse res) callback, {List<FutureOr Function(HttpRequest req, HttpResponse res)> middleware = const []}) => _createRoute(path, callback, ServerUniverseMethodType.options, middleware);