requestHEAD method
Future<HttpResponse>
requestHEAD(
- HttpClient client,
- String url, {
- Map<
String, String> ? headers, - Authorization? authorization,
- Map<
String, String?> ? queryParameters, - bool noQueryString = false,
- ProgressListener? progressListener,
Implementation
Future<HttpResponse> requestHEAD(HttpClient client, String url,
{Map<String, String>? headers,
Authorization? authorization,
Map<String, String?>? queryParameters,
bool noQueryString = false,
ProgressListener? progressListener}) async {
var requestURL = buildRequestURL(client, url,
authorization: authorization,
queryParameters: queryParameters,
noQueryString: noQueryString);
var requestHeaders = buildRequestHeaders(client, HttpMethod.HEAD, url,
headers: headers, authorization: authorization);
requestURL = await client._interceptRequest(
HttpMethod.HEAD, requestURL, requestHeaders);
return submitHttpRequest(
client,
HttpRequest(HttpMethod.HEAD, url, requestURL,
authorization: authorization,
queryParameters: queryParameters,
withCredentials: _withCredentials(client, authorization),
requestHeaders: requestHeaders),
progressListener,
client.logRequests);
}