Condition to match HTTP request header
This condition is used to match HTTP request messages by HTTP header
fields. HTTP header fields are components of the header section of HTTP
request and response messages. They define the operating parameters of an
HTTP transaction. For example, Cookie, Authorization, User-Agent, etc. One
condition can be used to match one header field, to match multiple header
fields, multiple conditions must be specified.
The match_type field defines how header_value field is used to match HTTP
requests. The header_name field does not support match types.
Name | Description | Type | Notes |
---|---|---|---|
case_sensitive | A case sensitive flag for HTTP header value comparing If true, case is significant when comparing HTTP header value. |
boolean | Default: "True" |
header_name | Name of HTTP header | string | Default: "Host" |
header_value | Value of HTTP header | string | Required |
inverse | A flag to indicate whether reverse the match result of this condition | boolean | Default: "False" |
match_type | Match type of HTTP header value | LbRuleMatchType | Default: "REGEX" |
type | Must be set to the value LBHttpRequestHeaderCondition | LBRuleConditionType | Required |