post method

void post(
  1. String path,
  2. RequestHandler onRequest
)

Implementation

void post(String path, RequestHandler onRequest) {
  createRoute(
    path: path,
    method: RegExp(r"^(post)$", caseSensitive: false),
    onRequest: onRequest,
  );
}