options method
Route<RequestHandler>
options(})
inherited
Adds a route that responds to a OPTIONS request.
Implementation
Route<T> options(
String path,
T handler, {
Iterable<T> middleware = const {},
}) {
return addRoute('OPTIONS', path, handler, middleware: middleware);
}