head abstract method
Sends an HTTP HEAD request.
Useful for retrieving headers without transferring the entire body.
url: The target URI.headers: Optional HTTP headers.options: Extra configuration specific to the underlying client implementation (e.g.,dio.Options, timeouts, cancel tokens).
Implementation
Future<RequestResponse<OriginalResponse>> head(
Uri url, {
Map<String, String>? headers,
Object? options,
});