comAtprotoSyncRequestCrawl function

Future<XRPCResponse<EmptyData>> comAtprotoSyncRequestCrawl({
  1. required String hostname,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

Request a service to persistently crawl hosted repos. Expected use is new PDS instances declaring their existence to Relays. Does not require auth.

Implementation

Future<XRPCResponse<EmptyData>> comAtprotoSyncRequestCrawl({
  required String hostname,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.comAtprotoSyncRequestCrawl,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {...?$unknown, 'hostname': hostname},
);