Matcher

sealed class Matcher

Describes the codes to use when checking for a successful response from a target for health checks.

Inheritors

Types

Link copied to clipboard
data class HttpCode(val value: String) : Matcher

The HTTP code to use when checking for a successful response from a target.

Link copied to clipboard

Functions

Link copied to clipboard

Casts this Matcher as a HttpCode and retrieves its kotlin.String value. Throws an exception if the Matcher is not a HttpCode.

Link copied to clipboard

Casts this Matcher as a HttpCode and retrieves its kotlin.String value. Returns null if the Matcher is not a HttpCode.