Options for getNodeInfo function.
Whether to directly fetch the NodeInfo document from the given URL.
Otherwise, the NodeInfo document will be fetched from the .well-known
location of the given URL.
Turned off by default.
optional
parse: "strict"
| "best-effort"
| "none"
How strictly to parse the NodeInfo document.
"strict"
: Parse the NodeInfo document strictly. If the document is invalid,undefined
is returned. This is the default."best-effort"
: Try to parse the NodeInfo document even if it is invalid."none"
: Do not parse the NodeInfo document. The function will return the raw JSON value.
optional
userAgent: GetUserAgentOptions | string
The options for making User-Agent
header.
If a string is given, it is used as the User-Agent
header value.
If an object is given, it is passed to getUserAgent to generate
the User-Agent
header value.