post method

void post(
  1. String pattern,
  2. RequestHandler handler
)

Register a POST request handler.

Shorthand for calling register with the method set to "POST".

Implementation

void post(String pattern, RequestHandler handler) {
  register('POST', pattern, handler);
}