head method

HttpRoute head(
  1. String path,
  2. FutureOr callback(
    1. HttpRequest req,
    2. HttpResponse res
    ), {
  3. List<FutureOr Function(HttpRequest req, HttpResponse res)> middleware = const [],
})

Create a head route

Implementation

HttpRoute head(
  String path,
  FutureOr Function(HttpRequest req, HttpResponse res) callback, {
  List<FutureOr Function(HttpRequest req, HttpResponse res)> middleware = const [],
}) {
  return createRoute(ServerUniverseMethodType.head, path, callback, middleware);
}