跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

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

这篇文档对您有帮助吗?