head method
Get object metadata without reading the body (HeadObject).
Returns null if the key does not exist.
Implementation
@override
Future<ObjectInfo?> head(String key) async {
checkNotDisposed();
final manifest = await _readManifest(key);
if (manifest == null) return null;
return ObjectInfo(
key: key,
size: manifest.totalSize,
contentType: manifest.contentType,
metadata: manifest.metadata,
lastModified: manifest.lastModified,
);
}