@request-seal/core API
    Preparing search index...

    Type Alias DiscoveryFetch

    DiscoveryFetch: (
        source: DiscoverySource,
        options: {
            clock: () => number;
            context: Context;
            validators?: Readonly<{ etag: string; lifetime: number }>;
        },
    ) => Promise<Result<KeySet | NotModified>>

    A caller-owned discovery transport callback. With validators, an unchanged source answers 304 and the callback returns a NotModified outcome instead of a key set (RFC 9111 Section 4.3.4).

    Type Declaration

      • (
            source: DiscoverySource,
            options: {
                clock: () => number;
                context: Context;
                validators?: Readonly<{ etag: string; lifetime: number }>;
            },
        ): Promise<Result<KeySet | NotModified>>
      • Parameters

        • source: DiscoverySource
        • options: {
              clock: () => number;
              context: Context;
              validators?: Readonly<{ etag: string; lifetime: number }>;
          }

        Returns Promise<Result<KeySet | NotModified>>