function · Browser and Node
httpStatusResolver
Fetches signed lists over HTTP: GET ${base}/${encodeURIComponent(did)} for list "did#…", as the
agents hub serves them (GET /api/status/:did). Anything but a JSON list with the asked-for id is null.
@toip-tools/mandatesView sourceimport { httpStatusResolver } from "@toip-tools/mandates";
Declaration
httpStatusResolver(base: string, o?: {
fetch?: typeof fetch;
cacheSeconds?: number;
path?: (listId: string) => string;
}): StatusResolver;
Parameters
baserequiredstringooptional{ fetch?: typeof fetch; cacheSeconds?: number; path?: (listId: string) => string; }Default:
{}