kernl API
    Preparing search index...

    Function fetchThroughFirewall

    • Have the firewall approve the server a download contacts before it is contacted. kehto's resource service passes authorizeNetwork when the firewall is on; a web address is put to it by origin, and anything else (a magnet link, a file-server address) is resolved by its bridge, which names its own servers. Upstream gap: the bridge registry follows a redirect itself under its own address policy, so only the first origin is put to the firewall.

      Type Parameters

      • T

      Parameters

      • url: string

        The address the applet asked for.

      • init: Pick<ResourceFetchInit, "signal" | "authorizeNetwork">

        What kehto's resource service passed.

      • run: (signal: AbortSignal) => Promise<T>

        Resolves the address under the signal it is given.

      Returns Promise<T>

      What run resolved.

      createResourceService({ fetch: (url, init) => fetchThroughFirewall(url, init, (signal) => resolve(url, { signal })) });