headAjax function

Future<List<int>?> headAjax(
  1. Uri url, {
  2. Map<String, String>? headers,
  3. bool? onResponse(
    1. HttpClientResponse response
    )?,
  4. Duration? timeout,
})

Sends an Ajax request to the given url using the HEAD method.

Implementation

Future<List<int>?> headAjax(Uri url, {
    Map<String, String>? headers,
    bool? Function(HttpClientResponse response)? onResponse,
    Duration? timeout})
=> ajax(url, method: "HEAD",
    headers: headers, onResponse: onResponse, timeout: timeout);