head abstract method

Future<RequestResponse<OriginalResponse>> head(
  1. Uri url, {
  2. Map<String, String>? headers,
  3. Object? options,
})

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,
});