NetworkHostAndPort

data class NetworkHostAndPort(val host: String, val port: Int)

Tuple of host and port. Use NetworkHostAndPort.parse on untrusted data.

Parameters

host

a hostname or IP address. IPv6 addresses must not be enclosed in square brackets.

port

a valid port number.

Constructors

Link copied to clipboard
constructor(host: String, port: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val port: Int

Functions

Link copied to clipboard
open override fun toString(): String