HttpRouteHeaderMatchResponse

data class HttpRouteHeaderMatchResponse(val exactMatch: String, val header: String, val invertMatch: Boolean, val prefixMatch: String, val presentMatch: Boolean, val rangeMatch: HttpRouteHeaderMatchIntegerRangeResponse, val regexMatch: String, val suffixMatch: String)

Specifies how to select a route rule based on HTTP request headers.

Constructors

Link copied to clipboard
fun HttpRouteHeaderMatchResponse(exactMatch: String, header: String, invertMatch: Boolean, prefixMatch: String, presentMatch: Boolean, rangeMatch: HttpRouteHeaderMatchIntegerRangeResponse, regexMatch: String, suffixMatch: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

The name of the HTTP header to match against.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

A header with header_name 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.

Link copied to clipboard

The value of the header must match the regular expression specified in regex_match. For regular expression grammar, please see: https://github.com/google/re2/wiki/Syntax

Link copied to clipboard

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