interface DelegatedRoutingV1HttpApiClientInit {
    cacheName?: string;
    cacheTTL?: number;
    concurrentRequests?: number;
    filterAddrs?: string[];
    filterProtocols?: string[];
    timeout?: number;
}

Hierarchy (view full)

Properties

cacheName?: string

Where a Cache is available in the global scope, we will store request/responses to avoid making duplicate requests.

Default

'delegated-routing-v1-cache'
cacheTTL?: number

How long to cache responses for in ms (default: 5 minutes) If 0, caching is disabled

concurrentRequests?: number

A concurrency limit to avoid request flood in web browser (default: 4)

filterAddrs?: string[]

Array of address filters to filter PeerRecords's addresses as defined in IPIP-484 If undefined, PeerRecords are not filtered by address

See

https://github.com/ipfs/specs/pull/484

Default

undefined
filterProtocols?: string[]

List of protocols to filter in the PeerRecords as defined in IPIP-484 If undefined, PeerRecords are not filtered by protocol

See

https://github.com/ipfs/specs/pull/484

Default

undefined
timeout?: number

How long a request is allowed to take in ms (default: 30 seconds)