HeaderMatchType

sealed class HeaderMatchType

Describes a header match type.

Inheritors

Types

Link copied to clipboard
data class Contains(val value: String) : HeaderMatchType

A contains type match.

Link copied to clipboard
data class Exact(val value: String) : HeaderMatchType

An exact type match.

Link copied to clipboard
data class Prefix(val value: String) : HeaderMatchType

A prefix type match. Matches the value with the prefix.

Link copied to clipboard

Functions

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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