Net.Dns
eff DnsSourceThe effect used to resolve domain names to IP addresses.
Operations
def lookup(host: String): Result[IoError, IpAddr] \ Dns
Sourcedef lookupAll(host: String): Result[IoError, List[IpAddr]] \ Dns
SourceDefinitions
def handle(f: a -> b \ ef): a -> b \ (ef - Dns) + IO
SourceHandles the Dns effect of the given function f.
In other words, re-interprets the Dns effect using the IO effect.
@DefaultHandler def runWithIO(f: Unit -> a \ ef): a \ (ef - Dns) + IO
SourceHandles the Dns effect of the given function f.
In other words, re-interprets the Dns effect using the IO effect.