StatusMatcher

Strategy for determining whether an HTTP status matches an output definition.

Inheritors

Types

Link copied to clipboard
data class AnyOf(val statuses: Set<Status>) : StatusMatcher

Matches against any status contained in statuses.

Link copied to clipboard
data class Is(val status: Status) : StatusMatcher

Matches a single status exactly.

Link copied to clipboard
data class Predicate(val description: String, val predicate: (Status) -> Boolean) : StatusMatcher

Delegates to an arbitrary predicate with a human-readable description.

Link copied to clipboard
data object Unmatched : StatusMatcher

Matches nothing, often used as a sentinel default.