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

Concrete methods

override
def equals(other: Any): Boolean
Definition Classes
Any
override
def hashCode: Int
Definition Classes
Any

Converts this hostname to lower case.

Converts this hostname to lower case.

Inherited methods

def <(that: Host): Boolean
Inherited from
Ordered
def <=(that: Host): Boolean
Inherited from
Ordered
def >(that: Host): Boolean
Inherited from
Ordered
def >=(that: Host): Boolean
Inherited from
Ordered
def compare(that: Host): Int
Inherited from
Host
def compareTo(that: Host): Int
Inherited from
Ordered
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 java.net.UnknownHostException.

Inherited from
HostPlatform
def resolveAll[F[_] : Applicative]: F[List[IpAddress]]

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.

Inherited from
HostPlatform
def resolveOption[F[_] : ApplicativeThrow]: F[Option[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, a None is returned.

Inherited from
HostPlatform

Concrete fields

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