recordDownload method
Future<DownloadRecord>
recordDownload({
- required String assetId,
- String? clientAddress,
- String? userAgent,
- String? principalId,
- String? providerId,
- int? bytesServed,
override
Records that the asset with assetId was downloaded, and increments its
counter.
Implementation
@override
Future<DownloadRecord> recordDownload({
required String assetId,
String? clientAddress,
String? userAgent,
String? principalId,
String? providerId,
int? bytesServed,
}) async => throw const UnsupportedOperationException(
'Downloads are recorded by the server as it serves them; a client cannot '
'record one on its behalf.',
);