head method
Returns head
Implementation
Future<Map<String, dynamic>?> head() async {
Map<String, dynamic>? res;
try {
var request = collection.client
.prepareRequest('/_api/document/${id}', methode: 'head');
res = await collection.client.exec(request);
} catch (e) {
print(e);
}
return res;
}