All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.config.Port.kt Maven / Gradle / Ivy

The newest version!
package org.http4k.config

data class Port(val value: Int) {
    init {
        require(value <= 65535) { "Out of range Port: '$value'" }
    }

    companion object {
        val RANDOM = Port(0)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy