head method

Future<Response> head(
  1. String url, {
  2. Map<String, String>? headers,
  3. dynamic body,
  4. Client? httpClient,
})

Performs a HEAD request to the specified url, adding the authorization token.

If no token already exists, or if it is expired, a new one is requested.

Implementation

Future<http.Response> head(String url,
    {Map<String, String>? headers,
    dynamic body,
    http.Client? httpClient}) async {
  return _request('HEAD', url, headers: headers, httpClient: httpClient);
}