head method

Route<T> head (String path, T handler, { Iterable<T> middleware })

Adds a route that responds to a HEAD request.

Implementation

Route<T> head(String path, T handler, {Iterable<T> middleware}) {
  return addRoute('HEAD', path, handler, middleware: middleware);
}