Host

com.comcast.ip4s.Host
See theHost companion object
sealed trait Host extends Ordered[Host]

ADT representing either an IpAddress, Hostname, or IDN.

Attributes

Companion:
object
Source:
Host.scala
Graph
Supertypes
trait Ordered[Host]
class Object
trait Matchable
class Any
Known subtypes
class Hostname
class IDN
class IpAddress

Members list

Concise view

Value members

Concrete methods

def compare(that: Host): Int

Attributes

Source:
Host.scala
def resolve[F[_] : Applicative]: F[IpAddress]

Resolves this host to an ip address using the platform DNS resolver.

Resolves this host to an ip address using the platform DNS resolver.

If the host cannot be resolved, the effect fails with a com.comcast.ip4s.UnknownHostException.

Attributes

Source:
Host.scala

Resolves this host to all ip addresses known to the platform DNS resolver.

Resolves this host to all ip addresses known to the platform DNS resolver.

If the host cannot be resolved, an empty list is returned.

Attributes

Source:
Host.scala

Resolves this host to an ip address using the platform DNS resolver.

Resolves this host to an ip address using the platform DNS resolver.

If the host cannot be resolved, a None is returned.

Attributes

Source:
Host.scala

Inherited methods

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered

Attributes

Inherited from:
Ordered