contentType

  • Property Manager name: Content Type
  • Criteria version: The v2023-01-05 rule format supports the contentType criteria v1.1.
  • Rule format status: GA, stable
  • Access: Read-write
  • Allowed in includes: Yes

Matches the HTTP response header's Content-Type.

OptionTypeDescriptionRequires
match‚ÄčOperatorenum

Matches any Content-Type among specified values when set to IS_‚ÄčONE_‚ÄčOF, otherwise IS_‚ÄčNOT_‚ÄčONE_‚ÄčOF reverses the match.

{"displayType":"enum","options":["IS_ONE_OF","IS_NOT_ONE_OF"],"tag":"select"}
IS_‚ÄčONE_‚ÄčOF

Matches any Content-Type among the specified values.

IS_‚ÄčNOT_‚ÄčONE_‚ÄčOF

Matches none of the specified values.

valuesstring array

Content-Type response header value, for example text/html.

{"displayType":"string array","tag":"input","todo":true}
match‚ÄčWildcardboolean

Allows * and ? wildcard matches among the values, so that specifying text/* matches both text/html and text/css.

{"displayType":"boolean","tag":"input","type":"checkbox"}
match‚ÄčCase‚ÄčSensitiveboolean

Sets a case-sensitive match for all values.

{"displayType":"boolean","tag":"input","type":"checkbox"}