org.http4k.config.Host.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-config Show documentation
Show all versions of http4k-config Show documentation
Machinery for configuring Http4k apps in a typesafe way
The newest version!
package org.http4k.config
data class Host(val value: String) {
init {
require(value.isNotEmpty()) { "Could not construct Host from '$value'" }
}
fun asAuthority() = Authority(this)
companion object {
val localhost = Host("localhost")
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy