Interface FchRequest

FCH service request.

interface FchRequest {
    count?: number;
    ipv4?: boolean;
    ipv6?: boolean;
    network?: string;
    position?: [lon: number, lat: number];
    server?: string;
    signal?: AbortSignal;
    transport?: string;
    transports?: readonly string[] | Record<string, number>;
}

Properties

count?: number

Number of routers.

Remarks

Ignored if transports is a Record.

ipv4?: boolean

IPv4 allowed?

Default Value

auto detect
ipv6?: boolean

IPv6 allowed?

Default Value

auto detect
network?: string

Network authority, such as "yoursunny".

position?: [lon: number, lat: number]

Client geolocation.

server?: string

FCH service URI.

Default Value

https://fch.ndn.today
signal?: AbortSignal

AbortSignal that allows canceling the request via AbortController.

transport?: string

Transport protocol, such as "udp".

Remarks

Ignored if .transports is specified.

transports?: readonly string[] | Record<string, number>

Transport protocols.

Remarks

If this is an array of transport protocols, the quantity of each is specified by count. If this is a Record, each key is a transport protocol and each value is the quantity.

Generated using TypeDoc