ByCondition

@Serializable
@SerialName(value = "byCondition")
data class ByCondition(val cases: List<ConditionCase>, val default: String) : RoutingSpec(source)

Route by predicate, first matching case wins, falling back to default. Each case names a predicate resolved at build time from the builder's predicate registry (behavior is not serialized — only the hook name). An unknown name fails the build loudly.

Constructors

Link copied to clipboard
constructor(cases: List<ConditionCase>, default: String)

Properties

Link copied to clipboard
Link copied to clipboard