headUrl method
Opens a HTTP connection using the HEAD method.
The URL to use is specified in url
.
See openUrl for details.
Implementation
@override
Future<HttpClientRequest> headUrl(Uri url) {
return client.headUrl(url).then((HttpClientRequest request) async {
logger.onRequest(request);
final HttpClientResponse response = await request.close();
logger.onResponse(request, response);
return request;
});
}