http.response.headers.values
http.response.headers.valuesArray<String>HTTP 响应中标头的值。
这些值不会经过预处理,并保留响应中使用的原始大小写。
标头值的顺序不做保证,但会与 http.response.headers.names 的顺序一致。
重复的标头会被多次列出。
- 解码:不执行解码
- 空白字符:保留
- 非 ASCII 字符:保留
注意:HTTP 响应字段的可用性取决于具体的 Cloudflare 功能和您的 Cloudflare 计划。
示例值:
Example 1: ["application/json"]
Example 2: ["This header value is longer than 10 bytes"]用法示例:
# Example 1: Check for specific header value.
any(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(http.response.headers.values[*])[*] gt 10)类别:
- Response
- Headers