fetcher/dns

Description:
  • Fetch proofs using DNS TXT records

Source:

Fetch proofs using DNS TXT records

Example

import { fetcher } from 'doipjs';
const data = await fetcher.dns.fn({ domain: 'domain.example' });

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
domain string

The targeted domain

fetcherTimeout number <optional>

Optional timeout for the fetcher

opts module:types~VerificationConfig <optional>

Options used to enable the request

Returns:

The fetched DNS records

Type
Promise.<object>