requestCrawl method

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

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

https://atprotodart.com/docs/lexicons/com/atproto/sync/requestCrawl

Implementation

Future<XRPCResponse<EmptyData>> requestCrawl({
  required String hostname,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  PostClient? $client,
}) async =>
    await _ctx.post<EmptyData>(
      ns.comAtprotoSyncRequestCrawl,
      headers: $headers,
      body: {
        'hostname': hostname,
        ...?$unknown,
      },
      client: $client,
    );