http.response.content_type.media_type
http.response.content_type.media_typeString基于响应 Content-Type 标头得出的小写内容类型(包括子类型和后缀),不含任何额外参数。
字段值不包含 charset 等参数。
示例值:
| Content-Type 标头 | 字段值 |
|---|---|
text/html |
"text/html" |
text/html; charset=utf-8 |
"text/html" |
text/html+extra |
"text/html+extra" |
text/html+extra; charset=utf-8 |
"text/html+extra" |
text/HTML |
"text/html" |
text/html; charset=utf-8; other=value |
"text/html" |
注意:HTTP 响应字段的可用性取决于具体的 Cloudflare 功能和您的 Cloudflare 计划。
类别:
- Response
- Headers