iya-sts
    Preparing search index...
    fetchPublished: (
        raw: string,
        options?: {
            accept?: string;
            body?: string;
            contentType?: string;
            headers?: Record<string, string>;
            maxBytes?: number;
            method?: string;
            timeoutMs?: number;
        },
    ) => Promise<
        {
            body: Buffer;
            contentType: string;
            kind: string;
            ok: boolean;
            status: number;
            url: string;
            why: string;
        },
    > = ...

    Forwards to FederationHttp.fetchPublished().

    Type Declaration

      • (
            raw: string,
            options?: {
                accept?: string;
                body?: string;
                contentType?: string;
                headers?: Record<string, string>;
                maxBytes?: number;
                method?: string;
                timeoutMs?: number;
            },
        ): Promise<
            {
                body: Buffer;
                contentType: string;
                kind: string;
                ok: boolean;
                status: number;
                url: string;
                why: string;
            },
        >
      • Fetches a document a trusted party published at an address the request did not choose: a status list, a registered jwks_uri, a discovered endpoint, and the like.

        Kill switch, transport policy, internal-address refusal in product mode with the connection pinned, body cap, timeout, no redirect. Never rejects.

        Parameters

        • raw: string

          the URL

        • Optionaloptions: {
              accept?: string;
              body?: string;
              contentType?: string;
              headers?: Record<string, string>;
              maxBytes?: number;
              method?: string;
              timeoutMs?: number;
          }

          accept, timeoutMs, maxBytes, and for a request with a body method, headers, body and contentType

        Returns Promise<
            {
                body: Buffer;
                contentType: string;
                kind: string;
                ok: boolean;
                status: number;
                url: string;
                why: string;
            },
        >

        a promise of { ok, status, body, contentType, kind, why, url }