head function
Sends an HTTP HEAD request with the given headers to the given URL.
Implementation
Future<http_request.Response> head(String url,
{Map<String, String>? headers}) async {
return await http_request.get(Uri.parse(url), headers: headers);
}