head method

Future<AlphaXResponse> head(
  1. String path, {
  2. Map<String, Object?>? queryParameters,
  3. Map<String, String>? headers,
  4. Duration? timeout,
  5. AlphaXCancellationToken? cancellationToken,
})

Sends a HEAD request to path.

Implementation

Future<AlphaXResponse> head(
  String path, {
  Map<String, Object?>? queryParameters,
  Map<String, String>? headers,
  Duration? timeout,
  AlphaXCancellationToken? cancellationToken,
}) => _send(
  HttpMethod.head,
  path,
  queryParameters: queryParameters,
  headers: headers,
  timeout: timeout,
  cancellationToken: cancellationToken,
);