- Preparing search index...
- The search index is not available
@matrixai/quic
- resolveHost(host, resolveHostname): Promise<[Host, "udp4" | "udp6"]>
-
Parameters
-
host: string
-
resolveHostname: ((hostname) => string | PromiseLike<string>)
-
- (hostname): string | PromiseLike<string>
-
Returns string | PromiseLike<string>
Returns Promise<[Host, "udp4" | "udp6"]>
This will resolve a Host or Hostname to Host and
udp4
orudp6
. TheresolveHostname
can be overridden.