head method
Future<HttpResponse>
head(
- String path, {
- Map<
String, String> ? headers, - bool fullPath = false,
- Credential? authorization,
- Map<
String, Object?> ? parameters, - ProgressListener? progressListener,
Does a HEAD request.
Implementation
Future<HttpResponse> head(String path,
{Map<String, String>? headers,
bool fullPath = false,
Credential? authorization,
Map<String, Object?>? parameters,
ProgressListener? progressListener}) async {
var parametersMapStr = _toParametersMapOfString(parameters);
var url = _buildURL(path, fullPath, parametersMapStr, true);
var requestAuthorization = await _buildRequestAuthorization(authorization);
return _clientRequester.requestHEAD(this, url,
headers: headers,
authorization: requestAuthorization,
progressListener: progressListener);
}