Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

DenoAddressResolver

Deno implementation of Effect's AddressResolver service.

Domain names are looked up with the Dns service, and IPv6 literals with a named zone such as fe80::1%eth0 get their scope ID from Deno.networkInterfaces(), queried each time to reflect interface changes.

Gotchas

Listing network interfaces requires the --allow-sys permission; without it, resolving a named zone fails with a NetAddress.NetAddressError.

1 exports Since v4.0.0 Source

Layers

Since v4.0.0

Layer that provides the Deno AddressResolver service using the Dns service.

Signature

declare const layer: Layer.Layer<AddressResolver.AddressResolver, never, Dns.Dns>