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

raw.http.response.headers.values

raw.http.response.headers.valuesArray<String>

HTTP 响应中未经任何转换的标头值。

这是 http.response.headers.values 字段的原始字段版本。以 raw. 为前缀的原始字段会保留原始响应值,供后续评估使用。这些字段在整个请求评估工作流程中都是不可变的,并且不受先前匹配规则的操作影响。

示例值:

Example 1: ["application/json"]
Example 2: ["This header value is longer than 10 bytes"]

用法示例:

# Example 1: Check for specific header value.
any(raw.http.response.headers.values[*] == "application/json")

# Example 2: Match requests according to the specified operator and the length/size entered for the header value.
any(len(raw.http.response.headers.values[*])[*] gt 10)
类别:
  • Response
  • Headers
  • Raw fields

这篇文档对您有帮助吗?