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"}