fetcher/activitypub

Description:
  • Fetch proofs using ActivityPub HTTP requests

Source:

Fetch proofs using ActivityPub HTTP requests

Example

import { fetcher } from 'doipjs';
const data = await fetcher.activitypub.fn({ url: 'https://domain.example/@alice' });

Members

(static, constant) timeout :number

Description:
  • Default timeout after which the fetch is aborted

Source:
Default Value:
  • 5000

Default timeout after which the fetch is aborted

Type:
  • number

Methods

(static) fn(data, optsopt) → {Promise.<object>}

Description:
  • Execute a fetch request

Source:
Parameters:
Name Type Attributes Description
data object

Data used in the request

Properties
Name Type Attributes Description
url string

The URL of the account to verify

fetcherTimeout number <optional>

Optional timeout for the fetcher

opts module:types~VerificationConfig <optional>

Options used to enable the request

Returns:

The fetched ActivityPub object

Type
Promise.<object>