post method

void post(
  1. String route,
  2. Function handler
)

Handle POST request to route using handler.

Implementation

void post(String route, Function handler) => add('POST', route, handler);