options method

void options(
  1. String route,
  2. Function handler, {
  3. Middleware? use,
})

Handle OPTIONS request to route using handler.

Can obtain a Middleware via use for this route.

Implementation

void options(String route, Function handler, {Middleware? use}) =>
    add('OPTIONS', route, handler, use);