head method
Implementation
Future<http.Response> head({required Uri url, headers}) async {
http.Response response = await _client.head(url, headers: headers);
if (!_isSuccessStatus(response.statusCode)) {
throw Exception(
"error fetching STATUS: ${response.statusCode}, ${response.body}, Link: $url",
);
}
return response;
}