org.http4k.config.Timeout.kt Maven / Gradle / Ivy
package org.http4k.config
import java.time.Duration
data class Timeout(val value: Duration) {
init {
require(!value.isNegative) { "Timeout cannot be negative" }
}
}
package org.http4k.config
import java.time.Duration
data class Timeout(val value: Duration) {
init {
require(!value.isNegative) { "Timeout cannot be negative" }
}
}