
tech.harmonysoft.oss.http.server.mock.request.condition.DynamicRequestCondition.kt Maven / Gradle / Ivy
package tech.harmonysoft.oss.http.server.mock.request.condition
import org.mockserver.model.HttpRequest
fun interface DynamicRequestCondition {
fun matches(request: HttpRequest): Boolean
fun and(condition: DynamicRequestCondition): DynamicRequestCondition {
return AndDynamicRequestCondition(this, condition)
}
companion object {
val MATCH_ALL = object : DynamicRequestCondition {
override fun matches(request: HttpRequest): Boolean {
return true
}
override fun toString(): String {
return ""
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy