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/mandates` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/status.ts#L83)

Import:

```ts
import { httpStatusResolver } from "@toip-tools/mandates";
```

## Declaration

Signature:

```ts
httpStatusResolver(base: string, o?: {
    fetch?: typeof fetch;
    cacheSeconds?: number;
    path?: (listId: string) => string;
}): StatusResolver;
```

### Parameters

**`base` (required)**

`string`

**`o` (optional)**

`{ fetch?: typeof fetch; cacheSeconds?: number; path?: (listId: string) => string; }`

Default: `{}`

### Returns

`StatusResolver`

[Usage guide](https://toip.tools/toolkit/mandates/#usage) · [Error handling](https://toip.tools/toolkit/mandates/#errors) · [All exports](https://toip.tools/toolkit/mandates/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mandates/api/httpStatusResolver/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
