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

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

The newest version!
package org.http4k.config

import java.time.Duration

data class Timeout(val value: Duration) {
    init {
        require(!value.isNegative) { "Timeout cannot be negative" }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy