head method
Future<HttpResponse>
head(
- HttpClient httpClient,
- String? path, {
- bool fullPath = false,
- Credential? authorization,
- Map<
String, String?> ? parameters, - String? accept,
- OnCachedResponse? onStaleResponse,
- Duration? staleResponseDelay,
Does a HEAD request.
- See requestURL documentation.
Implementation
Future<HttpResponse> head(HttpClient httpClient, String? path,
{bool fullPath = false,
Credential? authorization,
Map<String, String?>? parameters,
String? accept,
OnCachedResponse? onStaleResponse,
Duration? staleResponseDelay}) async {
return request(httpClient, HttpMethod.HEAD, path,
fullPath: fullPath,
authorization: authorization,
queryParameters: parameters,
accept: accept,
onStaleResponse: onStaleResponse,
staleResponseDelay: staleResponseDelay);
}