head method

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

Register a HEAD request handler.

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

Implementation

void head(String pattern, RequestHandler handler) {
  register('HEAD', pattern, handler);
}