Version: v2023-01-05 | Includes use: Yes |
---|
Criterion name: Response Header
Matches the basic type of request. To use this match, you need to be thoroughly familiar with how Akamai edge servers process requests. Contact your Akamai Technical representative if you need help, and test thoroughly on staging before activating on production.
Default criterion
These samples reflect the criterion's default settings. You can use these as is in your configurations or make adjustments based on the criterion's available options.
data "akamai_property_rules_builder" "response_header" {
rules_v2023_01_05 {
name = "Request Header"
comments = "Matches the cookie name or value passed with the request."
criterion {
response_header {
match_wildcard_name = false
match_operator = "IS_ONE_OF"
header_name = ""
values = []
match_wildcard_value = false
match_case_sensitive_value = true
}
}
}
}
"criterion": [
{
"name": "responseHeader",
"options": {
"matchWildcardName": false,
"matchOperator": "IS_ONE_OF",
"headerName": "",
"values": [],
"matchWildcardValue": false,
"matchCaseSensitiveValue": true
}
}
]
Options
Option | Description |
---|---|
header_name |
The name of the response header, for example
Content-Type .
|
match_operator |
The name of the request header, for example
Accept-Language . Value is one of:
|
values |
The response header's value
|
lower_bound |
Specifies the match's minimum value.
|
upper_bound |
Specifies the match's maximum value.
|
match_wildcard_name |
Allows wildcards in the
header_name field, where ? matches a single character and * matches zero or more characters.
|
match_wildcard_value |
Allows wildcards in the
value field, where ? matches a single character and * matches zero or more characters.
|
match_case_sensitive_value |
Sets a case-sensitive match for the
value field.
|