head<T> method
Future<Response<T> >
head<T>(
- String path, {
- dynamic data,
- Map<
String, dynamic> ? queryParameters, - Options? options,
- CancelToken? cancelToken,
inherited
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,
);
}