kernl API
    Preparing search index...

    Function defaultFetchBlob

    • Fetch an artifact blob by trying each server in turn with a 20-second budget.

      Bytes are returned unverified; resolveNapplet hashes them. Gateways are accelerators, never identity.

      Parameters

      • sha256: string

        The blob hash, lowercase hex.

      • servers: readonly string[]

        Server base URLs from the manifest.

      • fetchImpl: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        } = fetch

        The fetch to use; the global one by default.

          • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
          • Parameters

            • input: URL | RequestInfo
            • Optionalinit: RequestInit

            Returns Promise<Response>

          • (input: string | URL | Request, init?: RequestInit): Promise<Response>
          • Parameters

            • input: string | URL | Request
            • Optionalinit: RequestInit

            Returns Promise<Response>

      Returns Promise<Uint8Array<ArrayBufferLike>>

      The bytes the first responsive server returned.

      unavailable:blob when every server failed.

      const bytes = await defaultFetchBlob(hash, ['https://blossom.example']);