head method

Future<Response> head(
  1. String endpoint, {
  2. Map<String, String>? headers,
  3. Map<String, dynamic>? queryParameters,
  4. Encoding? encoding,
  5. DateTime? createdAt,
  6. ObjectId? id,
  7. CacheKey? key,
  8. OnProgress? onProgress,
})

Send http head request.

Make API request by triggering ApiLinks next methods

Implementation

Future<Response> head(
  String endpoint, {
  Map<String, String>? headers,
  Map<String, dynamic>? queryParameters,
  Encoding? encoding,
  DateTime? createdAt,
  ObjectId? id,
  CacheKey? key,
  OnProgress? onProgress,
}) =>
    send(Request(
      endpoint: endpoint,
      headers: headers,
      queryParameters: queryParameters,
      encoding: encoding,
      createdAt: createdAt,
      id: id,
      key: key,
      onProgress: onProgress,
      method: HttpMethod.head,
    ));