DnsResolver

zio.http.DnsResolver
See theDnsResolver companion trait
object DnsResolver

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Config(ttl: Duration, unknownHostTtl: Duration, maxCount: Int, maxConcurrentResolutions: Int, expireAction: ExpireAction, refreshRate: Duration)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Config

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Config.type
object ExpireAction

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ExpireAction

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Drop.type
object Refresh.type

Value members

Concrete methods

def configured(path: NonEmptyChunk[String])(implicit trace: Trace): ZLayer[Any, Error, DnsResolver]
def resolve(host: String)(implicit trace: Trace): ZIO[DnsResolver, UnknownHostException, Chunk[InetAddress]]

Concrete fields

val default: ZLayer[Any, Nothing, DnsResolver]
val live: ZLayer[Config, Nothing, DnsResolver]
val system: ZLayer[Any, Nothing, DnsResolver]