comAtprotoRepoImportRepo function

Future<XRPCResponse<EmptyData>> comAtprotoRepoImportRepo({
  1. required Uint8List bytes,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $parameters,
})

Import a repo in the form of a CAR file. Requires Content-Length HTTP header to be set.

Implementation

Future<XRPCResponse<EmptyData>> comAtprotoRepoImportRepo({
  required Uint8List bytes,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $parameters,
}) async => await $ctx.post(
  ns.comAtprotoRepoImportRepo,
  headers: {'Content-type': 'application/vnd.ipld.car', ...?$headers},
  parameters: $parameters,
  body: bytes,
);