get method

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

Register a GET request handler.

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

Implementation

void get(String pattern, RequestHandler handler) {
  register('GET', pattern, handler);
}