HttpRouteRuleMatchHeader

data class HttpRouteRuleMatchHeader(val exactMatch: String? = null, val header: String? = null, val invertMatch: Boolean? = null, val prefixMatch: String? = null, val presentMatch: Boolean? = null, val rangeMatch: HttpRouteRuleMatchHeaderRangeMatch? = null, val regexMatch: String? = null, val suffixMatch: String? = null)

Constructors

Link copied to clipboard
constructor(exactMatch: String? = null, header: String? = null, invertMatch: Boolean? = null, prefixMatch: String? = null, presentMatch: Boolean? = null, rangeMatch: HttpRouteRuleMatchHeaderRangeMatch? = null, regexMatch: String? = null, suffixMatch: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val exactMatch: String? = null

The value of the header should match exactly the content of exactMatch.

Link copied to clipboard
val header: String? = null

The name of the HTTP header to match against.

Link copied to clipboard
val invertMatch: Boolean? = null

If specified, the match result will be inverted before checking. Default value is set to false.

Link copied to clipboard
val prefixMatch: String? = null

The value of the header must start with the contents of prefixMatch.

Link copied to clipboard
val presentMatch: Boolean? = null

A header with headerName must exist. The match takes place whether or not the header has a value.

Link copied to clipboard

If specified, the rule will match if the request header value is within the range. Structure is documented below.

Link copied to clipboard
val regexMatch: String? = null

The value of the header must match the regular expression specified in regexMatch.

Link copied to clipboard
val suffixMatch: String? = null

The value of the header must end with the contents of suffixMatch.