post method

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

Handle POST request to route using handler.

Can obtain a Middleware via use for this route.

Implementation

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