head<T> method Null safety

  1. @override
Future<Response<T>> head<T>(
  1. String path,
  2. {dynamic data,
  3. Map<String, dynamic>? queryParameters,
  4. Options? options,
  5. CancelToken? cancelToken}
)
override

Handy method to make http HEAD request, which is a alias of BaseDio.requestOptions.

Implementation

@override
Future<Response<T>> head<T>(
  String path, {
  data,
  Map<String, dynamic>? queryParameters,
  Options? options,
  CancelToken? cancelToken,
}) {
  return request<T>(
    path,
    data: data,
    queryParameters: queryParameters,
    options: checkOptions('HEAD', options),
    cancelToken: cancelToken,
  );
}