getBlobStream abstract method
Future<Stream<BlobResponse> >
getBlobStream({
- required String sha256,
- required List<
String> serverUrls, - Nip01Event? authorization,
- int chunkSize = 1024 * 1024,
checks if the server supports range requests, if no server supports range requests, the entire blob is returned otherwise, the blob is returned in chunks. @see MDN HTTP range requests
Implementation
Future<Stream<BlobResponse>> getBlobStream({
required String sha256,
required List<String> serverUrls,
Nip01Event? authorization,
int chunkSize = 1024 * 1024, // 1MB chunks
});