Hostname

final class Hostname extends Host
RFC1123 compliant hostname.
A hostname contains one or more labels, where each label consists of letters A-Z, a-z, digits 0-9, or a dash.
A label may not start or end in a dash and may not exceed 63 characters in length. Labels are separated by
periods and the overall hostname must not exceed 253 characters in length.
Companion
object
trait Host
trait Ordered[Host]
trait Comparable[Host]
trait HostPlatform
class Object
trait Matchable
class Any

Value members

Methods

Converts this hostname to lower case.
override def hashCode: Int
Definition Classes
Any
override def equals(other: Any): Boolean
Definition Classes
Any

Fields

val labels: List[Label]
override val toString: String

Inherited methods

def >(that: A): Boolean
Inhertied from
Ordered
def resolveAll[F <: ([_$4] =>> Any)](evidence$5: Dns[F], evidence$6: Applicative[F]): F[List[IpAddress]]
Resolves this host to all ip addresses known to the platform DNS resolver.
If the host cannot be resolved, an empty list is returned.
Inhertied from
HostPlatform
def <(that: A): Boolean
Inhertied from
Ordered
def compareTo(that: A): Int
Inhertied from
Ordered
def >=(that: A): Boolean
Inhertied from
Ordered
def <=(that: A): Boolean
Inhertied from
Ordered
def resolveOption[F <: ([_$2] =>> Any)](evidence$3: Dns[F], evidence$4: ApplicativeThrow[F]): F[Option[IpAddress]]
Resolves this host to an ip address using the platform DNS resolver.
If the host cannot be resolved, a None is returned.
Inhertied from
HostPlatform
def compare(that: Host): Int
Inhertied from
Host
def resolve[F <: ([_$1] =>> Any)](evidence$1: Dns[F], evidence$2: Applicative[F]): F[IpAddress]
Resolves this host to an ip address using the platform DNS resolver.
If the host cannot be resolved, the effect fails with a java.net.UnknownHostException.
Inhertied from
HostPlatform