head method

Route<T> head(
  1. String path,
  2. T handler,
  3. {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);
}