options method

Route<T> options (String path, T handler, { Iterable<T> middleware })

Adds a route that responds to a OPTIONS request.

Implementation

Route<T> options(String path, T handler, {Iterable<T> middleware}) {
  return addRoute('OPTIONS', path, handler, middleware: middleware);
}