HostResolver

interface HostResolver

Component capable of resolving host names to one or more internet addresses

Functions

Link copied to clipboard
abstract fun reportFailure(addr: HostAddress)

Reports a failure on an address so that the cache can de-prioritize returning the address until it recovers

Link copied to clipboard
abstract suspend fun resolve(hostname: String): List<HostAddress>

Resolves the address(es) for a particular host and returns the list of addresses