| Version: v2023-09-20 | Includes use: Yes | 
|---|
Criterion name: Content Type
Matches the HTTP response header's Content-Type.
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" "content_type" {
  rules_v2023_09_20 {
    name     = "Content Type"
    comments = "Matches the HTTP response header's Content-Type."
    criterion {
      content_type {
        match_wildcard = true
        values = [
          "text/html*"
        ]
        match_case_sensitive = false
        match_operator = "IS_ONE_OF"
      }
    }
  }
}
"criterion": [
  {
    "name": "contentType",
    "options": {
      "matchWildcard": true,
      "values": [
        "text/html*"
      ],
      "matchCaseSensitive": false,
      "matchOperator": "IS_ONE_OF"
    }
  }
]
Options
| Option | Description | 
|---|---|
| match_operator | Specifies the match's logic. Value is one of:
           
 | 
| values | The  Content-Typeresponse header value, for exampletext/html. | 
| match_wildcard | Allows wildcards in the  valuefield, where?matches a single character and*matches zero or more characters. Specifyingtext/*matches bothtext/htmlandtext/css. | 
| match_case_sensitive | Sets a case-sensitive match for all values. | 
