head method
HttpRoute
head(
- String path,
- FutureOr callback(
- HttpRequest req,
- HttpResponse res
- 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);
}