head static method
Implementation
static Future<Response> head(
String url, {
Map<String, String>? headers,
Map<String, dynamic>? queryParameters,
int? port,
RequestBodyEncoding bodyEncoding = defaultBodyEncoding,
int timeoutSeconds = defaultTimeoutSeconds,
bool persistCookies = true,
bool verify = true,
bool withCredentials = false,
}) {
return _httpRequest(
HttpMethod.HEAD,
url,
bodyEncoding: bodyEncoding,
queryParameters: queryParameters,
port: port,
headers: headers ?? const <String, String>{},
timeoutSeconds: timeoutSeconds,
persistCookies: persistCookies,
verify: verify,
withCredentials: withCredentials,
);
}