head method

  1. @override
Future<BlobDescriptor?> head(
  1. String sha256
)
override

Returns the descriptor for sha256 without loading the bytes, or null if absent. Equivalent to a Blossom HEAD request.

Implementation

@override
Future<BlobDescriptor?> head(String sha256) async {
  final record = await _meta.record(sha256).get(_required);
  return record == null ? null : descriptorFromRecord(record);
}