importRepo method

Future<XRPCResponse<EmptyData>> importRepo({
  1. required Uint8List bytes,
  2. Map<String, String>? $unknown,
  3. Map<String, String>? $headers,
  4. PostClient? $client,
})

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

https://atprotodart.com/docs/lexicons/com/atproto/repo/importRepo

Implementation

Future<XRPCResponse<EmptyData>> importRepo({
  required Uint8List bytes,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<EmptyData>(
      ns.comAtprotoRepoImportRepo,
      headers: $headers,
      body: bytes,
      client: $client,
    );